Class DirectBitArrayR


  • public class DirectBitArrayR
    extends Object
    This class can maintain the BitArray object off-heap.
    • Field Detail

      • dataLength_

        protected final int dataLength_
      • wmem_

        protected final org.apache.datasketches.memory.WritableMemory wmem_
      • numBitsSet_

        protected long numBitsSet_
    • Constructor Detail

      • DirectBitArrayR

        protected DirectBitArrayR​(int dataLength,
                                  long storedNumBitsSet,
                                  org.apache.datasketches.memory.Memory mem)
    • 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)