Direct implementation of NoteMap merger without using
org. and
org.
| Modifier and Type | Field and Description |
|---|---|
| private final Repository | |
| private static final FanoutBucket | |
| private static final LeafBucket | |
| private final ObjectInserter | |
| private final MergeStrategy | |
| private final NoteMerger | |
| private final MutableObjectId | |
| private final ObjectReader |
| Access | Constructor and Description |
|---|---|
| public | NoteMapMerger(Repository
Git repository db, NoteMerger note merger for merging conflicting changes on a note noteMerger, MergeStrategy merge strategy for merging non-note entries nonNotesMergeStrategy)Constructs a NoteMapMerger with custom
|
| public | NoteMapMerger(Repository
Git repository db)Constructs a NoteMapMerger with
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static InMemoryNoteBucket | |
| private FanoutBucket | |
| private static boolean | |
| private static Note | |
| public NoteMap | |
| private InMemoryNoteBucket | Returns: merge result as an InMemoryBucketdepth of the tree treeDepth, InMemoryNoteBucket base version base, InMemoryNoteBucket ours version ours, InMemoryNoteBucket theirs version theirs)This method is called only when it is known that there is some difference between base, ours and theirs. |
| private InMemoryNoteBucket | |
| private InMemoryNoteBucket | |
| private NonNoteEntry | |
| private static Note | |
| private static NonNoteEntry | |
| private static LeafBucket | |
| private static boolean | |
| private static boolean | |
| private static Note | |
| private ObjectId |
| db | back to summary |
|---|---|
| private final Repository db | |
| EMPTY_FANOUT | back to summary |
|---|---|
| private static final FanoutBucket EMPTY_FANOUT | |
| EMPTY_LEAF | back to summary |
|---|---|
| private static final LeafBucket EMPTY_LEAF | |
| inserter | back to summary |
|---|---|
| private final ObjectInserter inserter | |
| nonNotesMergeStrategy | back to summary |
|---|---|
| private final MergeStrategy nonNotesMergeStrategy | |
| noteMerger | back to summary |
|---|---|
| private final NoteMerger noteMerger | |
| objectIdPrefix | back to summary |
|---|---|
| private final MutableObjectId objectIdPrefix | |
| reader | back to summary |
|---|---|
| private final ObjectReader reader | |
| NoteMapMerger | back to summary |
|---|---|
| public NoteMapMerger(Repository db, NoteMerger noteMerger, MergeStrategy nonNotesMergeStrategy) Constructs a NoteMapMerger with custom
| |
| NoteMapMerger | back to summary |
|---|---|
| public NoteMapMerger(Repository db) Constructs a NoteMapMerger with
| |
| addIfNotNull | back to summary |
|---|---|
| private void addIfNotNull(FanoutBucket b, int cell, NoteBucket child) throws IOException | |
| addIfNotNull | back to summary |
|---|---|
| private static InMemoryNoteBucket addIfNotNull(InMemoryNoteBucket result, Note note) | |
| asFanout | back to summary |
|---|---|
| private FanoutBucket asFanout(InMemoryNoteBucket bucket) | |
| equals | back to summary |
|---|---|
| private static boolean equals(NoteBucket a, NoteBucket b) | |
| get | back to summary |
|---|---|
| private static Note get(LeafBucket b, int i) | |
| merge | back to summary |
|---|---|
| public NoteMap merge(NoteMap base, NoteMap ours, NoteMap theirs) throws IOException Performs the merge.
| |
| merge | back to summary |
|---|---|
| private InMemoryNoteBucket merge(int treeDepth, InMemoryNoteBucket base, InMemoryNoteBucket ours, InMemoryNoteBucket theirs) throws IOException This method is called only when it is known that there is some difference between base, ours and theirs.
| |
| mergeFanoutBucket | back to summary |
|---|---|
| private InMemoryNoteBucket mergeFanoutBucket(int treeDepth, FanoutBucket base, FanoutBucket ours, FanoutBucket theirs) throws IOException | |
| mergeLeafBucket | back to summary |
|---|---|
| private InMemoryNoteBucket mergeLeafBucket(int treeDepth, LeafBucket bb, LeafBucket ob, LeafBucket tb) throws MissingObjectException, IOException | |
| mergeNonNotes | back to summary |
|---|---|
| private NonNoteEntry mergeNonNotes(NonNoteEntry baseList, NonNoteEntry oursList, NonNoteEntry theirsList) throws IOException | |
| min | back to summary |
|---|---|
| private static Note min(Note b, Note o, Note t) | |
| nonNotes | back to summary |
|---|---|
| private static NonNoteEntry nonNotes(InMemoryNoteBucket b) | |
| notNullOrEmpty | back to summary |
|---|---|
| private static LeafBucket notNullOrEmpty(LeafBucket b) | |
| sameContent | back to summary |
|---|---|
| private static boolean sameContent(Note a, Note b) | |
| sameNote | back to summary |
|---|---|
| private static boolean sameNote(Note a, Note b) | |
| sameNoteOrNull | back to summary |
|---|---|
| private static Note sameNoteOrNull(Note min, Note other) | |
| write | back to summary |
|---|---|
| private ObjectId write(NonNoteEntry list) throws IOException | |