Module org.eclipse.jgit
Class PackReverseIndexFactory
java.lang.Object
org.eclipse.jgit.internal.storage.file.PackReverseIndexFactory
Factory for creating instances of
PackReverseIndex
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PackReverseIndex
computeFromIndex
(PackIndex packIndex) Compute an in-memory pack reverse index from the in-memory pack forward index.
-
Constructor Details
-
PackReverseIndexFactory
public PackReverseIndexFactory()
-
-
Method Details
-
computeFromIndex
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
-