Class OrderedKeysAsChunkImpl

java.lang.Object
com.illumon.iris.db.v2.utils.OrderedKeysAsChunkImpl
All Implemented Interfaces:
LongSizedDataStructure, OrderedKeys, SafeCloseable, AutoCloseable
Direct Known Subclasses:
CurrentOnlyIndex, RspOrderedKeys, ShiftedOrderedKeys, SingleRangeOrderedKeys, SortedIndex, SortedRangesOrderedKeys

public abstract class OrderedKeysAsChunkImpl extends Object implements OrderedKeys
  • Constructor Details

    • OrderedKeysAsChunkImpl

      public OrderedKeysAsChunkImpl()
  • Method Details

    • runsUpperBound

      protected long runsUpperBound()
    • asKeyIndicesChunk

      public final LongChunk<Attributes.OrderedKeyIndices> asKeyIndicesChunk()
      Description copied from interface: OrderedKeys
      Get a LongChunk representation of the individual keys in this OrderedKeys.
      Specified by:
      asKeyIndicesChunk in interface OrderedKeys
      Returns:
      A LongChunk containing the keys in this OrderedKeys
    • asKeyRangesChunk

      public final LongChunk<Attributes.OrderedKeyRanges> asKeyRangesChunk()
      Description copied from interface: OrderedKeys
      Get a LongChunk representation of key ranges in this OrderedKeys.
      Specified by:
      asKeyRangesChunk in interface OrderedKeys
      Returns:
      A LongChunk containing the key ranges in this OrderedKeys
    • lastKey

      public abstract long lastKey()
      Description copied from interface: OrderedKeys
      Get the last key in this OrderedKeys.
      Specified by:
      lastKey in interface OrderedKeys
      Returns:
      The last key, or ReadOnlyIndex.NULL_KEY if there is none.
    • rangesCountUpperBound

      public abstract long rangesCountUpperBound()
    • close

      public void close()
      Description copied from interface: OrderedKeys

      Free any resources associated with this object.

      Using any OrderedKeys methods after close() is an error and may produce exceptions or undefined results.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface OrderedKeys
      Specified by:
      close in interface SafeCloseable
    • closeOrderedKeysAsChunkImpl

      protected final void closeOrderedKeysAsChunkImpl()
    • invalidateOrderedKeysAsChunkImpl

      protected final void invalidateOrderedKeysAsChunkImpl()