Class PartitionIndex.Reader

java.lang.Object
org.apache.cassandra.io.tries.Walker<PartitionIndex.Reader>
org.apache.cassandra.io.sstable.format.bti.PartitionIndex.Reader
All Implemented Interfaces:
AutoCloseable
Enclosing class:
PartitionIndex

public static class PartitionIndex.Reader extends Walker<PartitionIndex.Reader>
Provides methods to read the partition index trie. Thread-unsafe, uses class members to store lookup state.
  • Constructor Details

  • Method Details

    • exactCandidate

      public long exactCandidate(DecoratedKey key)
      Finds a candidate for an exact key search. Returns an ifile (if positive) or dfile (if negative, using ~) position. The position returned has a low chance of being a different entry, but only if the sought key is not present in the file.
    • ceiling

      public <ResultType> ResultType ceiling(PartitionPosition key, PartitionIndex.Acceptor<PartitionPosition,ResultType> acceptor) throws IOException
      Throws:
      IOException
    • floor

      public <ResultType> ResultType floor(PartitionPosition key, PartitionIndex.Acceptor<PartitionPosition,ResultType> acceptor) throws IOException
      Throws:
      IOException
    • getSpecificIndexPos

      public Long getSpecificIndexPos(int pos, int bits)
    • getCurrentIndexPos

      public long getCurrentIndexPos()
    • getLastIndexPosition

      public long getLastIndexPosition()
    • payloadSize

      protected int payloadSize()
      To be used only in analysis.