Class LongArray.DeferredLongArray

java.lang.Object
org.apache.cassandra.index.sai.disk.v1.LongArray.DeferredLongArray
All Implemented Interfaces:
Closeable, AutoCloseable, LongArray
Enclosing interface:
LongArray

@NotThreadSafe public static class LongArray.DeferredLongArray extends Object implements LongArray
  • Constructor Details

  • Method Details

    • get

      public long get(long idx)
      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
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface LongArray
      Throws:
      IOException