Class BitmapIndexImpl
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 TypeClassDescriptionprivate static final classprivate static final classstatic final classWrapper for aEWAHCompressedBitmapandPackBitmapIndex.private static final classprivate static final classprivate static final classNested classes/interfaces inherited from interface org.eclipse.jgit.lib.BitmapIndex
BitmapIndex.Bitmap, BitmapIndex.BitmapBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int(package private) final int(package private) final BitmapIndexImpl.MutableBitmapIndex(package private) final PackBitmapIndex -
Constructor Summary
ConstructorsConstructorDescriptionBitmapIndexImpl(PackBitmapIndex packIndex) Creates a BitmapIndex that is back by Compressed bitmaps. -
Method Summary
Modifier and TypeMethodDescription(package private) intfindOrInsert(AnyObjectId objectId, int type) (package private) intfindPosition(AnyObjectId objectId) getBitmap(AnyObjectId objectId) Get the bitmap for the id.(package private) PackBitmapIndexCreate a newBitmapBuilderbased on the values in the index.(package private) static final com.googlecode.javaewah.EWAHCompressedBitmapones(int sizeInBits)
-
Field Details
-
EXTRA_BITS
private static final int EXTRA_BITS- See Also:
-
packIndex
-
mutableIndex
-
indexObjectCount
final int indexObjectCount
-
-
Constructor Details
-
BitmapIndexImpl
Creates a BitmapIndex that is back by Compressed bitmaps.- Parameters:
packIndex- the bitmap index for the pack.
-
-
Method Details
-
getPackBitmapIndex
PackBitmapIndex getPackBitmapIndex() -
getBitmap
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:
getBitmapin interfaceBitmapIndex- Parameters:
objectId- the object ID- Returns:
- the Bitmap for the objectId or null, if one does not exist.
-
newBitmapBuilder
Create a newBitmapBuilderbased on the values in the index.- Specified by:
newBitmapBuilderin interfaceBitmapIndex- Returns:
- a new
BitmapBuilderbased on the values in the index.
-
findPosition
-
findOrInsert
-
ones
static final com.googlecode.javaewah.EWAHCompressedBitmap ones(int sizeInBits)
-