Package com.illumon.iris.binarystore
Class BinaryStoreReaderV2
java.lang.Object
com.illumon.iris.binarystore.AbstractBinaryStoreReader
com.illumon.iris.binarystore.AbstractBinaryStoreReaderV2
com.illumon.iris.binarystore.BinaryStoreReaderV2
- All Implemented Interfaces:
BinaryStoreReader,SkipableTableReader,TableReader
Table reader for Version 2 of the binary store.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReaderV2
AbstractBinaryStoreReaderV2.BinaryStoreRowGetter<T>Nested classes/interfaces inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReader
AbstractBinaryStoreReader.MissingGetterExceptionNested classes/interfaces inherited from interface com.illumon.iris.binarystore.TableReader
TableReader.MissingPropertyGetterException -
Field Summary
Fields inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReaderV2
ROW_SIZE_PROPFields inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReader
columnNames, columnTypes, dataBuffer, mask, rowGetters, typeMetadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the input source for this TableReader.longgetSize()protected voidreadData(int minAmount, ByteBuffer dataBuffer) If this reader is not in blocking mode, read up to dataBuffer.remaining() bytes and return.voidsetBlocking(boolean blocking) As implemented, blocking means sleep and retry.voidskipToRecord(long recordNo) Methods inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReaderV2
getApplicationVersion, getFlagGetter, getPropertyGetter, getRecordDataGetter, parseRecord, parseRow, readEntry, readHeader, readRowMethods inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReader
getColumnNames, getColumnType, getGetter, getGetter, getTypeMetadataString, handleRecord, handleRow, readDataBuffer, readHeader, readIntoByteBuffer, setRecordHandler, setRowHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.binarystore.TableReader
getApplicationVersion, getColumnNames, getColumnType, getFlagGetter, getGetter, getGetter, getPropertyGetter, getRecordDataGetter, readAllEntries, readAllEntries, readEntry, readRow
-
Constructor Details
-
BinaryStoreReaderV2
- Throws:
IOException
-
BinaryStoreReaderV2
- Throws:
IOException
-
-
Method Details
-
setBlocking
public void setBlocking(boolean blocking) Description copied from interface:SkipableTableReaderAs implemented, blocking means sleep and retry.- Specified by:
setBlockingin interfaceSkipableTableReader
-
getSize
- Specified by:
getSizein interfaceSkipableTableReader- Throws:
IOException
-
skipToRecord
- Specified by:
skipToRecordin interfaceSkipableTableReader- Throws:
IOException
-
close
Description copied from interface:TableReaderClose the input source for this TableReader.- Specified by:
closein interfaceTableReader- Throws:
IOException
-
readData
If this reader is not in blocking mode, read up to dataBuffer.remaining() bytes and return.If blocking, read at least minAmount bytes from the input channel. Sleep 1 second between attempts to get more data up to minAmount. Do not acknowledge EOF, hoping more data will appear.
- Specified by:
readDatain classAbstractBinaryStoreReader- Parameters:
minAmount- don't return without this many bytes (if blocking)dataBuffer- put the bytes in ths buffer.- Throws:
IOException
-