public class ExpWriter extends Writer
Writer.PushMode, Writer.TableColumn
columns, pointsSinceFlush
Modifier | Constructor and Description |
---|---|
protected |
ExpWriter(Session session,
Table[] tables) |
protected |
ExpWriter(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 |
flush()
Flush current local cache to server.
|
void |
flush(TimeRange[] ranges)
Flush with specific time range, only useful in the context of a truncate push mode.
|
void |
prepareFlush() |
void |
prepareFlush(TimeRange[] ranges) |
append, append, append, append, append, append, append, append, append, append, append, close, extraTables, extraTables, finalize, flush, pushMode, tableByIndex, tableIndexByName, trackMinMaxTimestamp
protected ExpWriter(Session session, Table[] tables, Writer.PushMode mode)
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 prepareFlush(TimeRange[] ranges)
public void flush() throws IOException
Writer
flush
in interface Flushable
flush
in class Writer
IOException
public void flush(TimeRange[] ranges) throws IOException
Writer
flush
in class Writer
IOException
Copyright © 2021. All rights reserved.