Class BitmapIndexImpl

  • All Implemented Interfaces:
    BitmapIndex

    public class BitmapIndexImpl
    extends java.lang.Object
    implements BitmapIndex
    A compressed bitmap representation of the entire object graph.
    • 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

      • 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:
        getBitmap in interface BitmapIndex
        Parameters:
        objectId - the object ID
        Returns:
        the Bitmap for the objectId or null, if one does not exist.
      • findPosition

        int findPosition​(AnyObjectId objectId)
      • findOrInsert

        int findOrInsert​(AnyObjectId objectId,
                         int type)
      • ones

        static final com.googlecode.javaewah.EWAHCompressedBitmap ones​(int sizeInBits)