Class BinaryReaderToTableWriter
java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.BinaryReaderToTableWriter
- All Implemented Interfaces:
TableListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this listener when no further rows will be supplied.Get theTableDefinitionthat specifies the columns this table listener expects to supply to its writer.voidinit(TableReader reader) Specify the reader to be used for subsequent rows.voidonNewRow()Called by the driving application whenever a new row that is available from the reader.resumeReading(ImportState importState) Allow the driving application to supply a listener with its import state object.voidsetWriter(TableWriter writer) Supply the writer for output.voidsetWriter(TableWriter writer, DbTableLocation unused) Supply the writer for output.
-
Constructor Details
-
BinaryReaderToTableWriter
public BinaryReaderToTableWriter()
-
-
Method Details
-
init
Description copied from interface:TableListenerSpecify the reader to be used for subsequent rows. Typically allows listeners to obtain RowGetters for each relevant column.- Specified by:
initin interfaceTableListener- Parameters:
reader- The reader
-
onNewRow
public void onNewRow()Description copied from interface:TableListenerCalled by the driving application whenever a new row that is available from the reader.- Specified by:
onNewRowin interfaceTableListener
-
setWriter
Description copied from interface:TableListenerSupply the writer for output. Typically allows listeners to obtain RowSetters for each relevant column.- Specified by:
setWriterin interfaceTableListener- Parameters:
writer- The writerunused- The table location object, typically used only for import details output on close
-
setWriter
Description copied from interface:TableListenerSupply the writer for output. Typically allows listeners to obtain RowSetters for each relevant column.- Specified by:
setWriterin interfaceTableListener- Parameters:
writer- The writer
-
close
Description copied from interface:TableListenerClose this listener when no further rows will be supplied.- Specified by:
closein interfaceTableListener- Throws:
IOException
-
resumeReading
Description copied from interface:TableListenerAllow the driving application to supply a listener with its import state object.- Specified by:
resumeReadingin interfaceTableListener- Parameters:
importState- The import state object, or null if none exists
-
getTableDefinition
Description copied from interface:TableListenerGet theTableDefinitionthat specifies the columns this table listener expects to supply to its writer.Note that this should only include writable columns, and that listener implementations are only required to accurately describe the column names (
DefaultColumnDefinition.getName()) and data types (ColumnDefinition.getDataType()) they expect to supply.- Specified by:
getTableDefinitionin interfaceTableListener- Returns:
- The supported
TableDefinition.
-