Class InflatingBitSet
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.InflatingBitSet
-
final class InflatingBitSet extends java.lang.Object
A wrapper around the EWAHCompressedBitmap optimized for the contains operation.
-
-
Field Summary
Fields Modifier and Type Field Description private com.googlecode.javaewah.EWAHCompressedBitmap
bitmap
private static long[]
EMPTY
private long[]
inflated
private com.googlecode.javaewah.IntIterator
iterator
private int
nextPosition
private int
sizeInBits
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
InflatingBitSet(com.googlecode.javaewah.EWAHCompressedBitmap bitmap)
private
InflatingBitSet(com.googlecode.javaewah.EWAHCompressedBitmap orBitmap, long[] inflated)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) InflatingBitSet
andNot(com.googlecode.javaewah.EWAHCompressedBitmap other)
private static int
block(int position)
(package private) boolean
contains(int position)
private boolean
get(int position)
(package private) com.googlecode.javaewah.EWAHCompressedBitmap
getBitmap()
private boolean
isEmpty()
private static long
mask(int position)
(package private) boolean
maybeContains(int position)
(package private) InflatingBitSet
or(com.googlecode.javaewah.EWAHCompressedBitmap other)
(package private) InflatingBitSet
xor(com.googlecode.javaewah.EWAHCompressedBitmap other)
-
-
-
Method Detail
-
maybeContains
final boolean maybeContains(int position)
-
contains
final boolean contains(int position)
-
get
private final boolean get(int position)
-
block
private static final int block(int position)
-
mask
private static final long mask(int position)
-
isEmpty
private final boolean isEmpty()
-
or
final InflatingBitSet or(com.googlecode.javaewah.EWAHCompressedBitmap other)
-
andNot
final InflatingBitSet andNot(com.googlecode.javaewah.EWAHCompressedBitmap other)
-
xor
final InflatingBitSet xor(com.googlecode.javaewah.EWAHCompressedBitmap other)
-
getBitmap
final com.googlecode.javaewah.EWAHCompressedBitmap getBitmap()
-
-