Module org.eclipse.jgit
Interface DfsPackFile.PackBitmapIndexLoader
- Enclosing class:
- DfsPackFile
public static interface DfsPackFile.PackBitmapIndexLoader
Loads the PackBitmapIndex associated with this packfile
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe instance of the pack bitmap index and the amount of bytes loaded. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasBitmaps(DfsPackDescription desc) Does this pack has bitmaps associated?booleankeepInDfs(DfsPackDescription desc) If the returned instance must be kept in DFS cache It should be true when the instance is expensive to load and can be reused.loadPackBitmapIndex(DfsReader ctx, DfsPackFile pack) Returns a PackBitmapIndex for this pack, if the pack has bitmaps associated.
-
Method Details
-
hasBitmaps
Does this pack has bitmaps associated?- Parameters:
desc- the pack- Returns:
- true if the pack has bitmaps
-
keepInDfs
If the returned instance must be kept in DFS cache It should be true when the instance is expensive to load and can be reused.- Parameters:
desc- the pack- Returns:
- true if the returned bitmap index should be kept in DFS
-
loadPackBitmapIndex
DfsPackFile.PackBitmapIndexLoader.LoadResult loadPackBitmapIndex(DfsReader ctx, DfsPackFile pack) throws IOException Returns a PackBitmapIndex for this pack, if the pack has bitmaps associated.- Parameters:
ctx- the readerpack- the pack- Returns:
- the pack bitmap index and bytes size (when applicable)
- Throws:
IOException- error accessing storage
-