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
A note bucket that has been loaded into the process.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) NonNoteEntry
Chain of non-note tree entries found at this path in the tree.(package private) final int
Number of leading digits that leads to this bucket in the note path. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.notes.NoteBucket
estimateSize, getNote, getTreeId, iterator, set, writeTree
-
Field Details
-
prefixLen
final int prefixLenNumber 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 nonNotesChain 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.
-
-
Constructor Details
-
InMemoryNoteBucket
InMemoryNoteBucket(int prefixLen)
-
-
Method Details
-
append
-