Class BigTableKeyReader
java.lang.Object
org.apache.cassandra.io.sstable.format.big.BigTableKeyReader
- All Implemented Interfaces:
Closeable,AutoCloseable,KeyReader
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadvance()Moves the iterator forward.voidclose()Closes the iterator quietlystatic BigTableKeyReadercreate(FileHandle indexFile, RowIndexEntry.IndexSerializer serializer) static BigTableKeyReadercreate(RandomAccessReader indexFileReader, RowIndexEntry.IndexSerializer serializer) longPosition in the data file where the associated content resideslonglongvoidindexPosition(long position) booleanReturns true if we reach EOFkey()Current keylongPosition in the component preferred for reading keys.voidreset()Resets the iterator to the initial positiontoString()
-
Method Details
-
create
public static BigTableKeyReader create(RandomAccessReader indexFileReader, RowIndexEntry.IndexSerializer serializer) throws IOException - Throws:
IOException
-
create
public static BigTableKeyReader create(FileHandle indexFile, RowIndexEntry.IndexSerializer serializer) throws IOException - Throws:
IOException
-
close
public void close()Description copied from interface:KeyReaderCloses the iterator quietly -
advance
Description copied from interface:KeyReaderMoves the iterator forward. Returns false if we reach EOF and there nothing more to read- Specified by:
advancein interfaceKeyReader- Throws:
IOException
-
isExhausted
public boolean isExhausted()Description copied from interface:KeyReaderReturns true if we reach EOF- Specified by:
isExhaustedin interfaceKeyReader
-
key
Description copied from interface:KeyReaderCurrent key -
keyPositionForSecondaryIndex
public long keyPositionForSecondaryIndex()Description copied from interface:KeyReaderPosition in the component preferred for reading keys. This is specific to SSTable implementation- Specified by:
keyPositionForSecondaryIndexin interfaceKeyReader
-
dataPosition
public long dataPosition()Description copied from interface:KeyReaderPosition in the data file where the associated content resides- Specified by:
dataPositionin interfaceKeyReader
-
indexPosition
public long indexPosition() -
indexPosition
- Throws:
IOException
-
indexLength
public long indexLength() -
reset
Description copied from interface:KeyReaderResets the iterator to the initial position- Specified by:
resetin interfaceKeyReader- Throws:
IOException
-
toString
-