Class PackReverseIndexFactory

java.lang.Object
org.eclipse.jgit.internal.storage.file.PackReverseIndexFactory

public final class PackReverseIndexFactory extends Object
Factory for creating instances of PackReverseIndex.
  • Constructor Details

    • PackReverseIndexFactory

      public PackReverseIndexFactory()
  • Method Details

    • computeFromIndex

      public static PackReverseIndex computeFromIndex(PackIndex packIndex)
      Compute an in-memory pack reverse index from the in-memory pack forward index. This computation uses insertion sort, which has a quadratic runtime on average.
      Parameters:
      packIndex - the forward index to compute from
      Returns:
      the reverse index instance