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 classWrapper for aEWAHCompressedBitmapandPackBitmapIndex.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 TypeMethodDescriptionvoidReport 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.CompressedBitmapBuilderCreate a newBitmapBuilderbased 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:BitmapIndexGet 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:
getBitmapin 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:BitmapIndexCreate a newBitmapBuilderbased on the values in the index.- Specified by:
newBitmapBuilderin interfaceBitmapIndex- Returns:
- a new
BitmapBuilderbased on the values in the index.
-
addBitmapLookupListener
Description copied from interface:BitmapIndexReport to this listener whetherBitmapIndex.getBitmap(AnyObjectId)finds a commit.- Specified by:
addBitmapLookupListenerin interfaceBitmapIndex- Parameters:
l- instance listening to lookup events in the index. Never null. Set toBitmapIndex.BitmapLookupListener.NOOPto disable.
-