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).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.io.tries.ValueIterator
ValueIterator.IterationPositionNested classes/interfaces inherited from class org.apache.cassandra.io.tries.Walker
Walker.Extractor<RESULT,VALUE>, Walker.PayloadToString, Walker.TransitionBytesCollector -
Field Summary
Fields inherited from class org.apache.cassandra.io.tries.ValueIterator
stackFields inherited from class org.apache.cassandra.io.tries.Walker
buf, BYTE_COMPARABLE_VERSION, greaterBranch, lesserBranch, nodeType, NONE, position, root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longReturns the position in the row index or data file.Methods inherited from class org.apache.cassandra.io.tries.ValueIterator
advanceNode, nextCollectedValue, nextPayloadedNode, peekNodeMethods inherited from class org.apache.cassandra.io.tries.Walker
close, dumpTrie, follow, followWithGreater, followWithLesser, getMaxTerm, getMinTerm, go, goMax, goMin, greaterTransition, hasChildren, hasPayload, lastTransition, lesserTransition, nodeSize, nodeTypeOrdinal, payloadFlags, payloadPosition, prefix, prefixAndNeighbours, search, toString, transition, transitionByte, transitionRange
-
Constructor Details
-
IndexPosIterator
- 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.
-