Class ScrubIterator
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
org.apache.cassandra.io.sstable.format.bti.ScrubIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,ScrubPartitionIterator
public class ScrubIterator
extends PartitionIndex.IndexPosIterator
implements ScrubPartitionIterator
-
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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidadvance()Move to the next position in the index file.voidclose()longKey position in data file or -1 if the iterator reached the end of the index.booleankey()Serialized partition key ornullif the iterator reached the end of the index or if the key may not be fully retrieved from the index file.Methods inherited from class org.apache.cassandra.io.sstable.format.bti.PartitionIndex.IndexPosIterator
nextIndexPosMethods inherited from class org.apache.cassandra.io.tries.ValueIterator
advanceNode, nextCollectedValue, nextPayloadedNode, peekNodeMethods inherited from class org.apache.cassandra.io.tries.Walker
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
-
Field Details
-
EXHAUSTED
public static final int EXHAUSTED- See Also:
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceScrubPartitionIterator- Overrides:
closein classWalker<PartitionIndex.IndexPosIterator>
-
key
Description copied from interface:ScrubPartitionIteratorSerialized partition key ornullif the iterator reached the end of the index or if the key may not be fully retrieved from the index file.- Specified by:
keyin interfaceScrubPartitionIterator
-
dataPosition
public long dataPosition()Description copied from interface:ScrubPartitionIteratorKey position in data file or -1 if the iterator reached the end of the index.- Specified by:
dataPositionin interfaceScrubPartitionIterator
-
advance
Description copied from interface:ScrubPartitionIteratorMove to the next position in the index file.- Specified by:
advancein interfaceScrubPartitionIterator- Throws:
IOException
-
isExhausted
public boolean isExhausted()- Specified by:
isExhaustedin interfaceScrubPartitionIterator
-