Class DirectBitArrayR
- java.lang.Object
-
- org.apache.datasketches.filters.bloomfilter.DirectBitArrayR
-
public class DirectBitArrayR extends Object
This class can maintain the BitArray object off-heap.
-
-
Field Summary
Fields Modifier and Type Field Description protected static long
DATA_OFFSET
protected int
dataLength_
protected static long
MAX_BITS
protected static long
NUM_BITS_OFFSET
protected long
numBitsSet_
protected org.apache.datasketches.memory.WritableMemory
wmem_
-
Constructor Summary
Constructors Modifier Constructor Description protected
DirectBitArrayR(int dataLength, long storedNumBitsSet, org.apache.datasketches.memory.Memory mem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
getLong(int arrayIndex)
boolean
hasMemory()
boolean
isDirect()
protected boolean
isDirty()
boolean
isReadOnly()
protected static String
printLong(long val)
protected void
setLong(int arrayIndex, long value)
String
toString()
-
-
-
Field Detail
-
NUM_BITS_OFFSET
protected static final long NUM_BITS_OFFSET
- See Also:
- Constant Field Values
-
DATA_OFFSET
protected static final long DATA_OFFSET
- See Also:
- Constant Field Values
-
dataLength_
protected final int dataLength_
-
wmem_
protected final org.apache.datasketches.memory.WritableMemory wmem_
-
numBitsSet_
protected long numBitsSet_
-
MAX_BITS
protected static final long MAX_BITS
- See Also:
- Constant Field Values
-
-
Method Detail
-
isDirty
protected boolean isDirty()
-
getLong
protected long getLong(int arrayIndex)
-
hasMemory
public boolean hasMemory()
-
isDirect
public boolean isDirect()
-
isReadOnly
public boolean isReadOnly()
-
setLong
protected void setLong(int arrayIndex, long value)
-
printLong
protected static String printLong(long val)
-
-