Module org.eclipse.jgit
Class PackIndexMerger.Builder
java.lang.Object
org.eclipse.jgit.internal.storage.midx.PackIndexMerger.Builder
- Enclosing class:
- PackIndexMerger
Builder collecting the inputs for the merger.
Order matters. In case of duplicates, the merger chooses the object in the first pack it appears.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd data from this midx iterator to the mergeAdd a regular pack to the midxbuild()Build the merger instanceAdd a progress monitor to the build process
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addPack
Add a regular pack to the midx- Parameters:
name- name of the packidx- primary index of the pack- Returns:
- this builder
-
addMidx
Add data from this midx iterator to the mergePacks are kept in the order of the iterator.
- Parameters:
midx- a midx iterator- Returns:
- this builder
-
setProgressMonitor
Add a progress monitor to the build processGive visibility over the first iteration of the packs calculating the data needed for midx headers (unique object count, if large offsets are needed...)
- Parameters:
pm- a progress monitor- Returns:
- this builder
-
build
Build the merger instance- Returns:
- a merger instance
-