Package org.eclipse.jgit.notes
Class InMemoryNoteBucket
- java.lang.Object
-
- org.eclipse.jgit.notes.NoteBucket
-
- org.eclipse.jgit.notes.InMemoryNoteBucket
-
- Direct Known Subclasses:
FanoutBucket
,LeafBucket
abstract class InMemoryNoteBucket extends NoteBucket
A note bucket that has been loaded into the process.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) NonNoteEntry
nonNotes
Chain of non-note tree entries found at this path in the tree.(package private) int
prefixLen
Number of leading digits that leads to this bucket in the note path.
-
Constructor Summary
Constructors Constructor Description InMemoryNoteBucket(int prefixLen)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description (package private) abstract InMemoryNoteBucket
append(Note note)
-
Methods inherited from class org.eclipse.jgit.notes.NoteBucket
estimateSize, getNote, getTreeId, iterator, set, writeTree
-
-
-
-
Field Detail
-
prefixLen
final int prefixLen
Number of leading digits that leads to this bucket in the note path. This is counted in terms of hex digits, not raw bytes. Each bucket level is typically 2 higher than its parent, placing about 256 items in each level of the tree.
-
nonNotes
NonNoteEntry nonNotes
Chain of non-note tree entries found at this path in the tree. During parsing of a note tree into the in-memory representation,NoteParser
keeps track of all non-note tree entries and stores them here as a sorted linked list. That list can be merged back with the note data that is held by the subclass, allowing the tree to be recreated.
-
-
Method Detail
-
append
abstract InMemoryNoteBucket append(Note note)
-
-