Interface ScrubPartitionIterator

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ScrubIterator

public interface ScrubPartitionIterator extends Closeable
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 Type
    Method
    Description
    void
    Move to the next position in the index file.
    void
     
    long
    Key position in data file or -1 if the iterator reached the end of the index.
    boolean
     
    key()
    Serialized partition key or null if 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 or null if 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

      void advance() throws IOException
      Move to the next position in the index file.
      Throws:
      IOException
    • isExhausted

      boolean isExhausted()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable