Class PartitionIndex.IndexPosIterator

java.lang.Object
org.apache.cassandra.io.tries.Walker<CONCRETE>
org.apache.cassandra.io.tries.ValueIterator<PartitionIndex.IndexPosIterator>
org.apache.cassandra.io.sstable.format.bti.PartitionIndex.IndexPosIterator
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
ScrubIterator
Enclosing class:
PartitionIndex

public static class PartitionIndex.IndexPosIterator extends ValueIterator<PartitionIndex.IndexPosIterator>
Iterator of index positions covered between two keys. Since we store prefixes only, the first and last returned values can be outside the span (and inclusiveness is not given as we cannot verify it).
  • Constructor Details

    • IndexPosIterator

      public IndexPosIterator(PartitionIndex index)
      Parameters:
      index - PartitionIndex to use for the iteration.

      Note: For performance reasons this class does not keep a reference of the index. Caller must ensure a reference is held for the lifetime of this object.

  • Method Details

    • nextIndexPos

      protected long nextIndexPos()
      Returns the position in the row index or data file.