Module org.eclipse.jgit
Class DfsPackFile.CachedStreamPackIndexes
java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsPackFile.CachedStreamPackIndexes
- All Implemented Interfaces:
DfsPackFile.IndexFactory.PackIndexes
- Enclosing class:
- DfsPackFile
public static final class DfsPackFile.CachedStreamPackIndexes
extends Object
implements DfsPackFile.IndexFactory.PackIndexes
Load primary and reverse index from Dfs streams and cache the references
in DfsBlockCache.
-
Constructor Summary
ConstructorsConstructorDescriptionCachedStreamPackIndexes(DfsBlockCache cache, DfsPackDescription desc) An index factory -
Method Summary
Modifier and TypeMethodDescriptionLoad the primary index for the pack.reverseIndex(DfsReader ctx) Load the reverse index of the pack
-
Constructor Details
-
CachedStreamPackIndexes
An index factory- Parameters:
cache- DFS block cache to use for the referencesdesc- This factory loads indexes for this package
-
-
Method Details
-
index
Description copied from interface:DfsPackFile.IndexFactory.PackIndexesLoad the primary index for the pack.- Specified by:
indexin interfaceDfsPackFile.IndexFactory.PackIndexes- Parameters:
ctx- reader to find the raw bytes- Returns:
- a primary index
- Throws:
IOException- a problem finding/parsing the index
-
reverseIndex
Description copied from interface:DfsPackFile.IndexFactory.PackIndexesLoad the reverse index of the pack- Specified by:
reverseIndexin interfaceDfsPackFile.IndexFactory.PackIndexes- Parameters:
ctx- reader to find the raw bytes- Returns:
- the reverse index of the pack
- Throws:
IOException- a problem finding/parsing the reverse index
-