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 aEWAHCompressedBitmap
andPackBitmapIndex
.For a EWAHCompressedBitmap
bitmap
representing 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.CompressedBitmap
andNot(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.CompressedBitmap
or(BitmapIndex.Bitmap other)
Bitwise-OR the current bitmap with the value from the other bitmap.com.googlecode.javaewah.EWAHCompressedBitmap
retrieveCompressed()
Returns the corresponding raw compressed EWAH bitmap of the bitmap.BitmapIndexImpl.CompressedBitmap
xor(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.Bitmap
Bitwise-OR the current bitmap with the value from the other bitmap.- Specified by:
or
in 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.Bitmap
Bitwise-AND-NOT the current bitmap with the value from the other bitmap.- Specified by:
andNot
in 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.Bitmap
Bitwise-XOR the current bitmap with the value from the other bitmap.- Specified by:
xor
in 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.Bitmap
Returns an iterator over a set of elements of type BitmapObject. The BitmapObject instance is reused across calls toIterator.next()
for performance reasons.- Specified by:
iterator
in interfaceBitmapIndex.Bitmap
- Specified by:
iterator
in interfaceIterable<BitmapObject>
- Returns:
- an Iterator.
-
retrieveCompressed
public com.googlecode.javaewah.EWAHCompressedBitmap retrieveCompressed()
Description copied from interface:BitmapIndex.Bitmap
Returns the corresponding raw compressed EWAH bitmap of the bitmap.- Specified by:
retrieveCompressed
in interfaceBitmapIndex.Bitmap
- Returns:
- the corresponding
EWAHCompressedBitmap
-
-