Package com.illumon.iris.binarystore
Class BinaryStoreReaderV1
java.lang.Object
com.illumon.iris.binarystore.AbstractBinaryStoreReader
com.illumon.iris.binarystore.AbstractBinaryStoreReaderV1
com.illumon.iris.binarystore.BinaryStoreReaderV1
- All Implemented Interfaces:
BinaryStoreReader
,SkipableTableReader
,TableReader
Table reader for Version 1 of the binary store.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReader
AbstractBinaryStoreReader.MissingGetterException
Nested classes/interfaces inherited from interface com.illumon.iris.binarystore.TableReader
TableReader.MissingPropertyGetterException
-
Field Summary
Fields inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReader
columnNames, columnTypes, dataBuffer, mask, rowGetters, typeMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the input source for this TableReader.long
getSize()
protected void
readData
(int minAmount, ByteBuffer dataBuffer) If this reader is not in blocking mode, read up to dataBuffer.remaining() bytes and return.void
seek
(long position) void
setBlocking
(boolean blocking) As implemented, blocking means sleep and retry.void
skipToRecord
(long recordNo) Methods inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReaderV1
getApplicationVersion, getFlagGetter, readHeader, readRow
Methods inherited from class com.illumon.iris.binarystore.AbstractBinaryStoreReader
getColumnNames, getColumnType, getGetter, getGetter, getTypeMetadataString, handleRecord, handleRow, readDataBuffer, readHeader, readIntoByteBuffer, setRecordHandler, setRowHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.binarystore.TableReader
getApplicationVersion, getColumnNames, getColumnType, getFlagGetter, getGetter, getGetter, getPropertyGetter, getRecordDataGetter, readAllEntries, readAllEntries, readEntry, readRow
-
Constructor Details
-
BinaryStoreReaderV1
- Throws:
IOException
-
BinaryStoreReaderV1
- Throws:
IOException
-
-
Method Details
-
setBlocking
public void setBlocking(boolean blocking) Description copied from interface:SkipableTableReader
As implemented, blocking means sleep and retry.- Specified by:
setBlocking
in interfaceSkipableTableReader
-
getSize
- Specified by:
getSize
in interfaceSkipableTableReader
- Throws:
IOException
-
skipToRecord
- Specified by:
skipToRecord
in interfaceSkipableTableReader
- Throws:
IOException
-
seek
- Throws:
IOException
-
close
Description copied from interface:TableReader
Close the input source for this TableReader.- Specified by:
close
in 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:
readData
in classAbstractBinaryStoreReader
- Parameters:
minAmount
- don't return without this many bytes (if blocking)dataBuffer
- put the bytes in ths buffer.- Throws:
IOException
-