java.lang.Object
org.eclipse.jgit.internal.storage.file.BitmapIndexImpl
- All Implemented Interfaces:
BitmapIndex
A compressed bitmap representation of the entire object graph.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Wrapper for aEWAHCompressedBitmap
andPackBitmapIndex
.Nested classes/interfaces inherited from interface org.eclipse.jgit.lib.BitmapIndex
BitmapIndex.Bitmap, BitmapIndex.BitmapBuilder, BitmapIndex.BitmapLookupListener
-
Constructor Summary
ConstructorsConstructorDescriptionBitmapIndexImpl
(PackBitmapIndex packIndex) Creates a BitmapIndex that is back by Compressed bitmaps. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Report to this listener whetherBitmapIndex.getBitmap(AnyObjectId)
finds a commit.getBitmap
(AnyObjectId objectId) Get the bitmap for the id.org.eclipse.jgit.internal.storage.file.BitmapIndexImpl.CompressedBitmapBuilder
Create a newBitmapBuilder
based on the values in the index.
-
Constructor Details
-
BitmapIndexImpl
Creates a BitmapIndex that is back by Compressed bitmaps.- Parameters:
packIndex
- the bitmap index for the pack.
-
-
Method Details
-
getBitmap
Description copied from interface:BitmapIndex
Get the bitmap for the id. The returned bitmap is immutable and the bitwise operations return the result of the operation in a new Bitmap.- Specified by:
getBitmap
in interfaceBitmapIndex
- Parameters:
objectId
- the object ID- Returns:
- the Bitmap for the objectId or null, if one does not exist.
-
newBitmapBuilder
public org.eclipse.jgit.internal.storage.file.BitmapIndexImpl.CompressedBitmapBuilder newBitmapBuilder()Description copied from interface:BitmapIndex
Create a newBitmapBuilder
based on the values in the index.- Specified by:
newBitmapBuilder
in interfaceBitmapIndex
- Returns:
- a new
BitmapBuilder
based on the values in the index.
-
addBitmapLookupListener
Description copied from interface:BitmapIndex
Report to this listener whetherBitmapIndex.getBitmap(AnyObjectId)
finds a commit.- Specified by:
addBitmapLookupListener
in interfaceBitmapIndex
- Parameters:
l
- instance listening to lookup events in the index. Never null. Set toBitmapIndex.BitmapLookupListener.NOOP
to disable.
-