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 a
EWAHCompressedBitmap and PackBitmapIndex.
For a EWAHCompressedBitmap bitmap representing a vector of
bits, new CompressedBitmap(bitmap, bitmapIndex) represents the
objects at those positions in bitmapIndex.packIndex.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.googlecode.javaewah.EWAHCompressedBitmap(package private) final BitmapIndexImpl -
Constructor Summary
ConstructorsConstructorDescriptionCompressedBitmap(com.googlecode.javaewah.EWAHCompressedBitmap bitmap, BitmapIndexImpl bitmapIndex) Construct compressed bitmap for given bitmap and bitmap index -
Method Summary
Modifier and TypeMethodDescriptionandNot(BitmapIndex.Bitmap other) Bitwise-AND-NOT the current bitmap with the value from the other bitmap.private com.googlecode.javaewah.EWAHCompressedBitmapewahBitmap(BitmapIndex.Bitmap other) iterator()Returns an iterator over a set of elements of type BitmapObject.private final com.googlecode.javaewah.IntIteratorofObjectType(int type) or(BitmapIndex.Bitmap other) Bitwise-OR the current bitmap with the value from the other bitmap.com.googlecode.javaewah.EWAHCompressedBitmapReturns the corresponding raw compressed EWAH bitmap of the bitmap.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, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
bitmap
final com.googlecode.javaewah.EWAHCompressedBitmap bitmap -
bitmapIndex
-
-
Constructor Details
-
CompressedBitmap
public CompressedBitmap(com.googlecode.javaewah.EWAHCompressedBitmap bitmap, BitmapIndexImpl bitmapIndex) Construct compressed bitmap for given bitmap and bitmap index- Parameters:
bitmap-bitmapIndex-
-
-
Method Details
-
or
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
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
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.
-
ofObjectType
private final com.googlecode.javaewah.IntIterator ofObjectType(int type) -
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
-
ewahBitmap
-