Class BitmapIndexImpl.CompressedBitmap
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.BitmapIndexImpl.CompressedBitmap
-
- All Implemented Interfaces:
Iterable<BitmapObject>,BitmapIndex.Bitmap
- Enclosing class:
- BitmapIndexImpl
public static final class BitmapIndexImpl.CompressedBitmap extends Object implements BitmapIndex.Bitmap
Wrapper for aEWAHCompressedBitmapandPackBitmapIndex.For a EWAHCompressedBitmap
bitmaprepresenting a vector of bits,new CompressedBitmap(bitmap, bitmapIndex)represents the objects at those positions inbitmapIndex.packIndex.
-
-
Constructor Summary
Constructors Constructor Description CompressedBitmap(com.googlecode.javaewah.EWAHCompressedBitmap bitmap, BitmapIndexImpl bitmapIndex)Construct compressed bitmap for given bitmap and bitmap index
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitmapIndexImpl.CompressedBitmapandNot(BitmapIndex.Bitmap other)Bitwise-AND-NOT the current bitmap with the value from the other bitmap.Iterator<BitmapObject>iterator()Returns an iterator over a set of elements of type BitmapObject.BitmapIndexImpl.CompressedBitmapor(BitmapIndex.Bitmap other)Bitwise-OR the current bitmap with the value from the other bitmap.com.googlecode.javaewah.EWAHCompressedBitmapretrieveCompressed()Returns the corresponding raw compressed EWAH bitmap of the bitmap.BitmapIndexImpl.CompressedBitmapxor(BitmapIndex.Bitmap other)Bitwise-XOR the current bitmap with the value from the other bitmap.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CompressedBitmap
public CompressedBitmap(com.googlecode.javaewah.EWAHCompressedBitmap bitmap, BitmapIndexImpl bitmapIndex)Construct compressed bitmap for given bitmap and bitmap index- Parameters:
bitmap-bitmapIndex-
-
-
Method Detail
-
or
public BitmapIndexImpl.CompressedBitmap or(BitmapIndex.Bitmap other)
Description copied from interface:BitmapIndex.BitmapBitwise-OR the current bitmap with the value from the other bitmap.- Specified by:
orin interfaceBitmapIndex.Bitmap- Parameters:
other- the other bitmap- Returns:
- a bitmap that is the bitwise-OR.
-
andNot
public BitmapIndexImpl.CompressedBitmap andNot(BitmapIndex.Bitmap other)
Description copied from interface:BitmapIndex.BitmapBitwise-AND-NOT the current bitmap with the value from the other bitmap.- Specified by:
andNotin interfaceBitmapIndex.Bitmap- Parameters:
other- the other bitmap- Returns:
- a bitmap that is the bitwise-AND-NOT.
-
xor
public BitmapIndexImpl.CompressedBitmap xor(BitmapIndex.Bitmap other)
Description copied from interface:BitmapIndex.BitmapBitwise-XOR the current bitmap with the value from the other bitmap.- Specified by:
xorin interfaceBitmapIndex.Bitmap- Parameters:
other- the other bitmap- Returns:
- a bitmap that is the bitwise-XOR.
-
iterator
public Iterator<BitmapObject> iterator()
Description copied from interface:BitmapIndex.BitmapReturns an iterator over a set of elements of type BitmapObject. The BitmapObject instance is reused across calls toIterator.next()for performance reasons.- Specified by:
iteratorin interfaceBitmapIndex.Bitmap- Specified by:
iteratorin interfaceIterable<BitmapObject>- Returns:
- an Iterator.
-
retrieveCompressed
public com.googlecode.javaewah.EWAHCompressedBitmap retrieveCompressed()
Description copied from interface:BitmapIndex.BitmapReturns the corresponding raw compressed EWAH bitmap of the bitmap.- Specified by:
retrieveCompressedin interfaceBitmapIndex.Bitmap- Returns:
- the corresponding
EWAHCompressedBitmap
-
-