Class BitmapIndexImpl
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.BitmapIndexImpl
-
- All Implemented Interfaces:
BitmapIndex
public class BitmapIndexImpl extends java.lang.Object implements BitmapIndex
A compressed bitmap representation of the entire object graph.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBitmapIndexImpl.BitmapObjectImplprivate static classBitmapIndexImpl.ComboBitsetstatic classBitmapIndexImpl.CompressedBitmapWrapper for aEWAHCompressedBitmapandPackBitmapIndex.private static classBitmapIndexImpl.CompressedBitmapBuilderprivate static classBitmapIndexImpl.MutableBitmapIndexprivate static classBitmapIndexImpl.MutableEntry-
Nested classes/interfaces inherited from interface org.eclipse.jgit.lib.BitmapIndex
BitmapIndex.Bitmap, BitmapIndex.BitmapBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private static intEXTRA_BITS(package private) intindexObjectCount(package private) BitmapIndexImpl.MutableBitmapIndexmutableIndex(package private) PackBitmapIndexpackIndex
-
Constructor Summary
Constructors Constructor Description BitmapIndexImpl(PackBitmapIndex packIndex)Creates a BitmapIndex that is back by Compressed bitmaps.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intfindOrInsert(AnyObjectId objectId, int type)(package private) intfindPosition(AnyObjectId objectId)BitmapIndexImpl.CompressedBitmapgetBitmap(AnyObjectId objectId)Get the bitmap for the id.(package private) PackBitmapIndexgetPackBitmapIndex()BitmapIndexImpl.CompressedBitmapBuildernewBitmapBuilder()Create a newBitmapBuilderbased on the values in the index.(package private) static com.googlecode.javaewah.EWAHCompressedBitmapones(int sizeInBits)
-
-
-
Field Detail
-
EXTRA_BITS
private static final int EXTRA_BITS
- See Also:
- Constant Field Values
-
packIndex
final PackBitmapIndex packIndex
-
mutableIndex
final BitmapIndexImpl.MutableBitmapIndex mutableIndex
-
indexObjectCount
final int indexObjectCount
-
-
Constructor Detail
-
BitmapIndexImpl
public BitmapIndexImpl(PackBitmapIndex packIndex)
Creates a BitmapIndex that is back by Compressed bitmaps.- Parameters:
packIndex- the bitmap index for the pack.
-
-
Method Detail
-
getPackBitmapIndex
PackBitmapIndex getPackBitmapIndex()
-
getBitmap
public BitmapIndexImpl.CompressedBitmap getBitmap(AnyObjectId objectId)
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
public BitmapIndexImpl.CompressedBitmapBuilder 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
int findPosition(AnyObjectId objectId)
-
findOrInsert
int findOrInsert(AnyObjectId objectId, int type)
-
ones
static final com.googlecode.javaewah.EWAHCompressedBitmap ones(int sizeInBits)
-
-