public class PinnedWriter extends Writer
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
PinnedWriter.PinnedMatrix  | 
Writer.PushMode, Writer.TableColumncolumns, 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)
WriterextraTables in class Writerpublic 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 flush()
           throws IOException
Writerflush in interface Flushableflush in class WriterIOExceptionCopyright © 2021. All rights reserved.