Package io.deephaven.tablelogger
Interface TableWriter<R extends Row>
- All Superinterfaces:
Row
- All Known Implementing Classes:
DynamicTableWriter
Interface for writing table data out.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the writer.void
flush()
Flushes data out.String[]
Gets the column names for the table.Class[]
Gets the column types for the table.Get a writer for a Row entries.default <T> RowSetter<T>
Gets a typed setter for a column.Gets a setter for a column.void
void
writeRow()
Writes out a new row (values set using setters).Methods inherited from interface io.deephaven.tablelogger.Row
getColumnPartitionValue, setColumnPartitionValue, size
-
Field Details
-
NULL_SETTER
-
-
Method Details
-
getSetter
Gets a setter for a column.The implementation is likely to delegate to
Row.getSetter(String)
in a default Row instance. -
getSetter
default <T> RowSetter<T> getSetter(@NotNull @NotNull String name, @NotNull @NotNull Class<T> tClass) Gets a typed setter for a column.The implementation is likely to delegate to
Row.getSetter(String, Class)
in a default Row instance. -
setFlags
The implementation is likely to delegate to
Row.setFlags(Flags)
in a default Row instance. -
getRowWriter
R getRowWriter()Get a writer for a Row entries. This is likely to be newly created, so callers should cache this value. In practice, TableWriter implementations generally cache the result of the first call to this method as a primary writer.- Returns:
- a Row, likely newly created
-
writeRow
Writes out a new row (values set using setters).The implementation is likely to delegate to
Row.writeRow()
in a default Row instance.- Specified by:
writeRow
in interfaceRow
- Throws:
IOException
- problem writing the row- ImplNote:
- This method is used as part of the import portion of the table recording process in TableListeners
-
close
Closes the writer.- Throws:
IOException
- problem closing the writer.
-
getColumnTypes
Class[] getColumnTypes()Gets the column types for the table.- Returns:
- column types for the table.
-
getColumnNames
String[] getColumnNames()Gets the column names for the table.- Returns:
- column names for the table.
-
flush
Flushes data out.- Throws:
IOException
- problem flushing data out.
-