Class AbstractBlockPackedReader

java.lang.Object
org.apache.cassandra.index.sai.disk.v1.bitpack.AbstractBlockPackedReader
All Implemented Interfaces:
Closeable, AutoCloseable, LongArray

@NotThreadSafe public abstract class AbstractBlockPackedReader extends Object implements LongArray
  • Method Details

    • blockOffsetAt

      protected abstract long blockOffsetAt(int block)
    • get

      public long get(long valueIndex)
      Description copied from interface: LongArray
      Get value at idx.
      Specified by:
      get in interface LongArray
    • length

      public long length()
      Description copied from interface: LongArray
      Get array length.
      Specified by:
      length in interface LongArray
    • indexOf

      public long indexOf(long value)
      Description copied from interface: LongArray
      Using the given value returns the first index corresponding to the value.
      Specified by:
      indexOf in interface LongArray
      Parameters:
      value - Value to lookup, and it must not be smaller than previous value
      Returns:
      The index of the given value or negative value if target value is greater than all values