public interface TableWriter extends Entry
Record.RecordSetter<T extends RecordData>
| Modifier and Type | Field and Description |
|---|---|
static RowSetter |
NULL_SETTER |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer.
|
void |
flush()
Flushes data out.
|
String[] |
getColumnNames()
Gets the column names for the table.
|
Class[] |
getColumnTypes()
Gets the column types for the table.
|
default Record.RecordSetter<RecordData> |
getRecordSetter()
Gets a record setter for an entry.
|
default <T extends RecordData> |
getRecordSetter(Class<T> tClass)
Gets a typed record setter for an entry.
|
default Record |
getRecordWriter()
Get new writer for Record entries.
|
Row |
getRowWriter()
Get a writer for a Row entries.
|
RowSetter |
getSetter(String name)
Gets a setter for a column.
|
default <T> RowSetter<T> |
getSetter(String name,
Class<T> tClass)
Gets a typed setter for a column.
|
void |
setFlags(Row.Flags flags) |
boolean |
supportAllTypes()
True if all data types can be written out; false otherwise.
|
default void |
writeRecord()
Write a record entry out.
|
void |
writeRow()
Writes out a new row (values set using setters).
|
static final RowSetter NULL_SETTER
RowSetter getSetter(String name)
The implementation is likely to delegate to Row.getSetter(String) in a default Row instance.
default <T> RowSetter<T> getSetter(@NotNull String name, @NotNull Class<T> tClass)
The implementation is likely to delegate to Row.getSetter(String, Class) in a default Row instance.
void setFlags(Row.Flags flags)
The implementation is likely to delegate to Row.setFlags(Flags) in a default Row instance.
Row getRowWriter()
void writeRow()
throws IOException
The implementation is likely to delegate to Row.writeRow() in a default Row instance.
writeRow in interface Row
IOException - problem writing the rowdefault Record getRecordWriter()
default Record.RecordSetter<RecordData> getRecordSetter()
The implementation is likely to delegate to Record.getRecordSetter() in a default Record instance.
getRecordSetter in interface Record
default <T extends RecordData> Record.RecordSetter<T> getRecordSetter(Class<T> tClass)
The implementation is likely to delegate to Record.getRecordSetter(Class) in a default Record instance.
getRecordSetter in interface Record
default void writeRecord()
throws IOException
The TableWriter implementation is likely to delegate to Record.writeRecord() in a default Record instance.
writeRecord in interface Record
IOExceptionvoid close()
throws IOException
IOException - problem closing the writer.Class[] getColumnTypes()
String[] getColumnNames()
void flush()
throws IOException
IOException - problem flushing data out.boolean supportAllTypes()