private static final class BitmapIndexImpl.CompressedBitmapBuilder extends java.lang.Object implements BitmapIndex.BitmapBuilder
| Modifier and Type | Field and Description |
|---|---|
private BitmapIndexImpl |
bitmapIndex |
private BitmapIndexImpl.ComboBitset |
bitset |
| Constructor and Description |
|---|
CompressedBitmapBuilder(BitmapIndexImpl bitmapIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(AnyObjectId objectId,
int type)
Adds the id and the existing bitmap for the id, if one exists, to the
bitmap.
|
BitmapIndex.BitmapBuilder |
addObject(AnyObjectId objectId,
int type)
Adds the id to the bitmap.
|
BitmapIndexImpl.CompressedBitmapBuilder |
andNot(BitmapIndex.Bitmap other)
Bitwise-AND-NOT the current bitmap with the value from the other
bitmap.
|
BitmapIndexImpl.CompressedBitmap |
build() |
int |
cardinality() |
boolean |
contains(AnyObjectId objectId)
Whether the bitmap has the id set.
|
private com.googlecode.javaewah.EWAHCompressedBitmap |
ewahBitmap(BitmapIndex.Bitmap other) |
BitmapIndexImpl |
getBitmapIndex()
Get the BitmapIndex for this BitmapBuilder.
|
java.util.Iterator<BitmapObject> |
iterator()
Returns an iterator over a set of elements of type BitmapObject.
|
BitmapIndexImpl.CompressedBitmapBuilder |
or(BitmapIndex.Bitmap other)
Bitwise-OR the current bitmap with the value from the other bitmap.
|
void |
remove(AnyObjectId objectId)
Remove the id from the bitmap.
|
boolean |
removeAllOrNone(PackBitmapIndex index)
Determines if the entire bitmap index is contained in the bitmap.
|
BitmapIndexImpl.CompressedBitmapBuilder |
xor(BitmapIndex.Bitmap other)
Bitwise-XOR the current bitmap with the value from the other bitmap.
|
private BitmapIndexImpl.ComboBitset bitset
private final BitmapIndexImpl bitmapIndex
CompressedBitmapBuilder(BitmapIndexImpl bitmapIndex)
public boolean add(AnyObjectId objectId, int type)
BitmapIndex.BitmapBuilderadd in interface BitmapIndex.BitmapBuilderobjectId - the object IDtype - the Git object type. See Constants.public boolean contains(AnyObjectId objectId)
BitmapIndex.BitmapBuildercontains in interface BitmapIndex.BitmapBuilderobjectId - the object IDpublic BitmapIndex.BitmapBuilder addObject(AnyObjectId objectId, int type)
BitmapIndex.BitmapBuilderaddObject in interface BitmapIndex.BitmapBuilderobjectId - the object IDtype - the Git object type. See Constants.public void remove(AnyObjectId objectId)
BitmapIndex.BitmapBuilderremove in interface BitmapIndex.BitmapBuilderobjectId - the object IDpublic BitmapIndexImpl.CompressedBitmapBuilder or(BitmapIndex.Bitmap other)
BitmapIndex.BitmapBuilderor in interface BitmapIndex.Bitmapor in interface BitmapIndex.BitmapBuilderother - the other bitmappublic BitmapIndexImpl.CompressedBitmapBuilder andNot(BitmapIndex.Bitmap other)
BitmapIndex.BitmapBuilderandNot in interface BitmapIndex.BitmapandNot in interface BitmapIndex.BitmapBuilderother - the other bitmappublic BitmapIndexImpl.CompressedBitmapBuilder xor(BitmapIndex.Bitmap other)
BitmapIndex.BitmapBuilderxor in interface BitmapIndex.Bitmapxor in interface BitmapIndex.BitmapBuilderother - the other bitmappublic BitmapIndexImpl.CompressedBitmap build()
build in interface BitmapIndex.BitmapBuilderpublic java.util.Iterator<BitmapObject> iterator()
BitmapIndex.BitmapIterator.next() for performance reasons.iterator in interface java.lang.Iterable<BitmapObject>iterator in interface BitmapIndex.Bitmappublic int cardinality()
cardinality in interface BitmapIndex.BitmapBuilderpublic boolean removeAllOrNone(PackBitmapIndex index)
BitmapIndex.BitmapBuilderremoveAllOrNone in interface BitmapIndex.BitmapBuilderindex - the bitmap index to check if it is completely contained
inside of the current bitmap.true if the bitmap index was a complete match.public BitmapIndexImpl getBitmapIndex()
BitmapIndex.BitmapBuildergetBitmapIndex in interface BitmapIndex.BitmapBuilderprivate com.googlecode.javaewah.EWAHCompressedBitmap ewahBitmap(BitmapIndex.Bitmap other)