Interface ScrubPartitionIterator
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
ScrubIterator
Iterator over the partitions of an sstable used for scrubbing.
The difference between this and PartitionIterator is that this only uses information present in the index file
and does not try to read keys of the data file (for the trie index format), thus key() can be null.
Starts advanced to a position, advance() is to be used to go to next, and iteration completes when
dataPosition() == -1.
-
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.
-
Method Details
-
key
ByteBuffer key()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. -
dataPosition
long dataPosition()Key position in data file or -1 if the iterator reached the end of the index. -
advance
Move to the next position in the index file.- Throws:
IOException
-
isExhausted
boolean isExhausted() -
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-