Creates a new SenderBufferV1 instance.
Sender configuration object.
See SenderOptions documentation for detailed description of configuration options.
Resets the buffer, data sitting in the buffer will be lost.
In other words it clears the buffer, and sets the writing position to the beginning of the buffer.
Returns with a reference to this buffer.
Returns a cropped buffer, or null if there is nothing to send.
The returned buffer is backed by this buffer instance, meaning the view can change as the buffer is mutated.
Used only in tests to assert the buffer's content.
Returns a cropped buffer ready to send to the server, or null if there is nothing to send.
The returned buffer is a copy of this buffer.
It also compacts the buffer.
Writes the table name into the buffer.
Table name.
Returns with a reference to this buffer.
Writes a symbol name and value into the buffer.
Use it to insert into SYMBOL columns.
Symbol name.
Symbol value, toString() is called to extract the actual symbol value from the parameter.
Returns with a reference to this buffer.
Writes a string column with its value into the buffer.
Use it to insert into VARCHAR and STRING columns.
Column name.
Column value, accepts only string values.
Returns with a reference to this buffer.
Writes a boolean column with its value into the buffer.
Use it to insert into BOOLEAN columns.
Column name.
Column value, accepts only boolean values.
Returns with a reference to this buffer.
Writes a 64-bit signed integer into the buffer.
Use it to insert into LONG, INT, SHORT and BYTE columns.
Column name.
Column value, accepts only number values.
Returns with a reference to this buffer.
Writes a timestamp column with its value into the buffer.
Use it to insert into TIMESTAMP columns.
Column name.
Epoch timestamp, accepts numbers or BigInts.
Optional
unit: TimestampUnit = "us"Timestamp unit. Supported values: 'ns' - nanoseconds, 'us' - microseconds, 'ms' - milliseconds. Defaults to 'us'.
Returns with a reference to this buffer.
Closes the row after writing the designated timestamp into the buffer.
Designated epoch timestamp, accepts numbers or BigInts.
Optional
unit: TimestampUnit = "us"Timestamp unit. Supported values: 'ns' - nanoseconds, 'us' - microseconds, 'ms' - milliseconds. Defaults to 'us'.
Closes the row without writing designated timestamp into the buffer.
Designated timestamp will be populated by the server on this record.
Returns the current position of the buffer.
New data will be written into the buffer starting from this position.
Protected
checkChecks if the buffer has sufficient capacity for additional data and resizes if needed.
Array of strings to calculate the required capacity for
Base number of bytes to add to the calculation
Writes a 64-bit floating point value into the buffer using v1 serialization (text format).
Use it to insert into DOUBLE or FLOAT database columns.
Column name.
Column value, accepts only number values.
Returns with a reference to this sender.
Array columns are not supported in protocol v1.
Buffer implementation for protocol version 1.
Sends floating point numbers in their text form.