Class StreamTableReader
java.lang.Object
com.illumon.iris.db.tables.dataimport.StreamTableReader
- All Implemented Interfaces:
TableReader
A "stream" table reader that consumes from a ByteBuffer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.binarystore.TableReader
TableReader.MissingPropertyGetterException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the input source for this TableReader.intGet the application version associated with the file being read by this TableReader.String[]Get an array of all known column names.getColumnType(String columnName) Get the SupportedType of the named column.Each row is independent.Return a raw RowGetter for the column with the given name.<T> RowGetter<T>Return a typed RowGetter for the column with the given name.booleanreadRow()Read a row from the source, expecting that all entries will be Rows.readTable(long size) voidsetBuffer(ByteBuffer currentBuffer) Methods 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
getPropertyGetter, getRecordDataGetter, readAllEntries, readAllEntries, readEntry
-
Constructor Details
-
StreamTableReader
-
-
Method Details
-
readTable
-
getGetter
Description copied from interface:TableReaderReturn a raw RowGetter for the column with the given name. RowGetter.get() will return Object.- Specified by:
getGetterin interfaceTableReader- Parameters:
name- the column name- Returns:
- a RowGetter
-
getGetter
Description copied from interface:TableReaderReturn a typed RowGetter for the column with the given name. RowGetter.get() will return type tClass.- Specified by:
getGetterin interfaceTableReader- Parameters:
name- the column name- Returns:
- a RowGetter of type tClass
-
readRow
public boolean readRow()Description copied from interface:TableReaderRead a row from the source, expecting that all entries will be Rows. If a record entry is encountered, anIllegalStateExceptionwill be thrown.- Specified by:
readRowin interfaceTableReader- Returns:
- true if successful, false if EOF or an error is encountered.
-
close
public void close()Description copied from interface:TableReaderClose the input source for this TableReader.- Specified by:
closein interfaceTableReader
-
getColumnNames
Description copied from interface:TableReaderGet an array of all known column names. These can be used to determine valid column names for use inTableReader.getGetter(String).- Specified by:
getColumnNamesin interfaceTableReader- Returns:
- a new array of all known column names.
-
getColumnType
Description copied from interface:TableReaderGet the SupportedType of the named column.- Specified by:
getColumnTypein interfaceTableReader- Parameters:
columnName- the name of the column- Returns:
- the SupportedType value for the named column
-
getFlagGetter
Each row is independent.- Specified by:
getFlagGetterin interfaceTableReader- Returns:
- a getter that returns the flags for each row.
-
setBuffer
-
getApplicationVersion
public int getApplicationVersion()Description copied from interface:TableReaderGet the application version associated with the file being read by this TableReader.- Specified by:
getApplicationVersionin interfaceTableReader- Returns:
- the file's application version
-