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 class
private static final class
static final class
Wrapper for aEWAHCompressedBitmap
andPackBitmapIndex
.private static final class
private static final class
private static final class
Nested 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) int
findOrInsert
(AnyObjectId objectId, int type) (package private) int
findPosition
(AnyObjectId objectId) getBitmap
(AnyObjectId objectId) Get the bitmap for the id.(package private) PackBitmapIndex
Create a newBitmapBuilder
based on the values in the index.(package private) static final com.googlecode.javaewah.EWAHCompressedBitmap
ones
(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:
getBitmap
in interfaceBitmapIndex
- Parameters:
objectId
- the object ID- Returns:
- the Bitmap for the objectId or null, if one does not exist.
-
newBitmapBuilder
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.
-
findPosition
-
findOrInsert
-
ones
static final com.googlecode.javaewah.EWAHCompressedBitmap ones(int sizeInBits)
-