Class AbstractSSTableIterator.IndexState
- java.lang.Object
-
- org.apache.cassandra.db.columniterator.AbstractSSTableIterator.IndexState
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- AbstractSSTableIterator
public static class AbstractSSTableIterator.IndexState extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description IndexState(AbstractSSTableIterator.Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intblocksCount()voidclose()intcurrentBlockIdx()IndexInfocurrentIndex()intfindBlockIndex(ClusteringBound<?> bound, int fromIdx)IndexInfoindex(int i)intindexFor(ClusteringPrefix<?> name, int lastIndex)booleanisDone()booleanisPastCurrentBlock()voidsetToBlock(int blockIdx)java.lang.StringtoString()voidupdateBlock()
-
-
-
Constructor Detail
-
IndexState
public IndexState(AbstractSSTableIterator.Reader reader, ClusteringComparator comparator, RowIndexEntry indexEntry, boolean reversed, FileHandle indexFile)
-
-
Method Detail
-
isDone
public boolean isDone()
-
setToBlock
public void setToBlock(int blockIdx) throws java.io.IOException- Throws:
java.io.IOException
-
blocksCount
public int blocksCount()
-
updateBlock
public void updateBlock() throws java.io.IOException- Throws:
java.io.IOException
-
isPastCurrentBlock
public boolean isPastCurrentBlock() throws java.io.IOException- Throws:
java.io.IOException
-
currentBlockIdx
public int currentBlockIdx()
-
currentIndex
public IndexInfo currentIndex() throws java.io.IOException
- Throws:
java.io.IOException
-
index
public IndexInfo index(int i) throws java.io.IOException
- Throws:
java.io.IOException
-
findBlockIndex
public int findBlockIndex(ClusteringBound<?> bound, int fromIdx) throws java.io.IOException
- Throws:
java.io.IOException
-
indexFor
public int indexFor(ClusteringPrefix<?> name, int lastIndex) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-