Class IndexState
java.lang.Object
org.apache.cassandra.io.sstable.format.big.IndexState
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionIndexState(AbstractSSTableIterator<RowIndexEntry>.AbstractReader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()intintfindBlockIndex(ClusteringBound<?> bound, int fromIdx) index(int i) intindexFor(ClusteringPrefix<?> name, int lastIndex) booleanisDone()booleanvoidsetToBlock(int blockIdx) toString()void
-
Constructor Details
-
IndexState
public IndexState(AbstractSSTableIterator<RowIndexEntry>.AbstractReader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile)
-
-
Method Details
-
isDone
public boolean isDone() -
setToBlock
- Throws:
IOException
-
blocksCount
public int blocksCount() -
updateBlock
- Throws:
IOException
-
isPastCurrentBlock
- Throws:
IOException
-
currentBlockIdx
public int currentBlockIdx() -
currentIndex
- Throws:
IOException
-
index
- Throws:
IOException
-
findBlockIndex
- Throws:
IOException
-
indexFor
- Throws:
IOException
-
toString
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-