Class PackIndexMerger.Builder

java.lang.Object
org.eclipse.jgit.internal.storage.midx.PackIndexMerger.Builder
Enclosing class:
PackIndexMerger

public static class PackIndexMerger.Builder extends Object
Builder collecting the inputs for the merger.

Order matters. Packs will appear in the midx in the order they are added.

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • addPack

      public PackIndexMerger.Builder addPack(String name, PackIndex idx)
      Add a regular pack to the midx
      Parameters:
      name - name of the pack
      idx - primary index of the pack
      Returns:
      this builder
    • addMidx

      Add data from this midx iterator to the merge

      Packs are kept in the order of the iterator.

      Parameters:
      midx - a midx iterator
      Returns:
      this builder
    • build

      public PackIndexMerger build()
      Build the merger instance
      Returns:
      a merger instance