public class ExpWriter extends Writer
Writer.PushMode, Writer.TableColumncolumns, 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, trackMinMaxTimestampprotected ExpWriter(Session session, Table[] tables, Writer.PushMode mode)
public void append(Integer offset, Timespec timestamp, Value[] values) throws IOException
WriterAutoFlushWriter is used.append in class Writeroffset - 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.IOExceptionWriter.tableIndexByName(java.lang.String),
Writer.flush(),
Table.autoFlushWriter(net.quasardb.qdb.Session, java.lang.String)public void prepareFlush()
throws IOException
IOExceptionpublic void prepareFlush(TimeRange[] ranges)
public void flush()
throws IOException
Writerflush in interface Flushableflush in class WriterIOExceptionpublic void flush(TimeRange[] ranges) throws IOException
Writerflush in class WriterIOExceptionCopyright © 2021. All rights reserved.