public class BitmapIndexImpl extends java.lang.Object implements BitmapIndex
Modifier and Type | Class and Description |
---|---|
private static class |
BitmapIndexImpl.BitmapObjectImpl |
private static class |
BitmapIndexImpl.ComboBitset |
static class |
BitmapIndexImpl.CompressedBitmap
Wrapper for a
EWAHCompressedBitmap and PackBitmapIndex . |
private static class |
BitmapIndexImpl.CompressedBitmapBuilder |
private static class |
BitmapIndexImpl.MutableBitmapIndex |
private static class |
BitmapIndexImpl.MutableEntry |
BitmapIndex.Bitmap, BitmapIndex.BitmapBuilder
Modifier and Type | Field and Description |
---|---|
private static int |
EXTRA_BITS |
(package private) int |
indexObjectCount |
(package private) BitmapIndexImpl.MutableBitmapIndex |
mutableIndex |
(package private) PackBitmapIndex |
packIndex |
Constructor and Description |
---|
BitmapIndexImpl(PackBitmapIndex packIndex)
Creates a BitmapIndex that is back by Compressed bitmaps.
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
findOrInsert(AnyObjectId objectId,
int type) |
(package private) int |
findPosition(AnyObjectId objectId) |
BitmapIndexImpl.CompressedBitmap |
getBitmap(AnyObjectId objectId)
Get the bitmap for the id.
|
(package private) PackBitmapIndex |
getPackBitmapIndex() |
BitmapIndexImpl.CompressedBitmapBuilder |
newBitmapBuilder()
Create a new
BitmapBuilder based on the values in the index. |
(package private) static com.googlecode.javaewah.EWAHCompressedBitmap |
ones(int sizeInBits) |
private static final int EXTRA_BITS
final PackBitmapIndex packIndex
final BitmapIndexImpl.MutableBitmapIndex mutableIndex
final int indexObjectCount
public BitmapIndexImpl(PackBitmapIndex packIndex)
packIndex
- the bitmap index for the pack.PackBitmapIndex getPackBitmapIndex()
public BitmapIndexImpl.CompressedBitmap getBitmap(AnyObjectId objectId)
getBitmap
in interface BitmapIndex
objectId
- the object IDpublic BitmapIndexImpl.CompressedBitmapBuilder newBitmapBuilder()
BitmapBuilder
based on the values in the index.newBitmapBuilder
in interface BitmapIndex
BitmapBuilder
based on the values in the index.int findPosition(AnyObjectId objectId)
int findOrInsert(AnyObjectId objectId, int type)
static final com.googlecode.javaewah.EWAHCompressedBitmap ones(int sizeInBits)