public class PinnedWriter extends Writer
Modifier and Type | Class and Description |
---|---|
static class |
PinnedWriter.PinnedMatrix |
Writer.PushMode, Writer.TableColumn
columns, pointsSinceFlush
Modifier | Constructor and Description |
---|---|
protected |
PinnedWriter(Session session,
Table[] tables) |
protected |
PinnedWriter(Session session,
Table[] tables,
Writer.PushMode mode) |
Modifier and Type | Method and Description |
---|---|
void |
append(Integer offset,
Timespec timestamp,
Value[] values)
Append a new row to the local table cache.
|
void |
extraTables(Table[] tables)
After a writer is already initialized, this function allows extra tables to
be added to the internal state.
|
void |
flush()
Flush current local cache to server.
|
void |
prepareFlush() |
protected PinnedWriter(Session session, Table[] tables, Writer.PushMode mode)
public void extraTables(Table[] tables)
Writer
extraTables
in class Writer
public void append(Integer offset, Timespec timestamp, Value[] values) throws IOException
Writer
AutoFlushWriter
is used.append
in class Writer
offset
- Relative offset of the table inside the batch. Use #tableIndexByName
to determine the appropriate value.timestamp
- Timestamp of the rowvalues
- Values being inserted, mapped to columns by their relative offset.IOException
Writer.tableIndexByName(java.lang.String)
,
Writer.flush()
,
Table.autoFlushWriter(net.quasardb.qdb.Session, java.lang.String)
public void prepareFlush() throws IOException
IOException
public void flush() throws IOException
Writer
flush
in interface Flushable
flush
in class Writer
IOException
Copyright © 2021. All rights reserved.