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.EWAHCompressedBitmap
ewahBitmap
(BitmapIndex.Bitmap other) iterator()
Returns an iterator over a set of elements of type BitmapObject.private final com.googlecode.javaewah.IntIterator
ofObjectType
(int type) or
(BitmapIndex.Bitmap other) Bitwise-OR the current bitmap with the value from the other bitmap.com.googlecode.javaewah.EWAHCompressedBitmap
Returns 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, wait
Methods 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.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
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
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.
-
ofObjectType
private final com.googlecode.javaewah.IntIterator ofObjectType(int type) -
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
-
ewahBitmap
-