Package org.eclipse.jgit.lib
Interface BitmapIndex
-
- All Known Implementing Classes:
BitmapIndexImpl
public interface BitmapIndex
A compressed bitmap representation of the entire object graph.- Since:
- 3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BitmapIndex.Bitmap
A bitmap representation of ObjectIds that can be iterated to return the underlyingObjectId
s or operated on with otherBitmap
s.static interface
BitmapIndex.BitmapBuilder
A builder for a bitmap.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitmapIndex.Bitmap
getBitmap(AnyObjectId objectId)
Get the bitmap for the id.BitmapIndex.BitmapBuilder
newBitmapBuilder()
Create a newBitmapBuilder
based on the values in the index.
-
-
-
Method Detail
-
getBitmap
BitmapIndex.Bitmap 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.- Parameters:
objectId
- the object ID- Returns:
- the Bitmap for the objectId or null, if one does not exist.
-
newBitmapBuilder
BitmapIndex.BitmapBuilder newBitmapBuilder()
Create a newBitmapBuilder
based on the values in the index.- Returns:
- a new
BitmapBuilder
based on the values in the index.
-
-