TextCopyBuffer
Copy buffer that stores the data in the text format.
Value parameters
- shouldEscapeValues
-
True if string values should be escaped before being written to the buffer. For sources where the values are known not to include any special characters this can be disabled to improve performance.
- size
-
Size of the underlying character buffer. Must be at least 1.
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Clear the contents of the buffer so it can be reused.
Copy the data in this buffer into the specified table.
Returns true if there is space remaining in the buffer.
Indicate the end of the row and prepare for the next. Returns true if the row was able to fit in the buffer. Otherwise the buffer should be copied to Postgres and cleared before re-adding the row.
Indicate the end of the row and prepare for the next. Returns true if the row was able to fit in the buffer. Otherwise the buffer should be copied to Postgres and cleared before re-adding the row.
If a single row is too big to fit in the buffer, then an IllegalStateException will be thrown to avoid an endless loop.
Attributes
- Definition Classes
Put an 8-byte floating point column value into the buffer.
Put an array of 8-byte floating point column value into the buffer.
Put an array of 8-byte floating point column value into the buffer.
Attributes
- Definition Classes
Put an id column value into the buffer.
Put a signed 4-byte integer column value into the buffer.
Put a signed 8-byte integer column value into the buffer.
Put a signed 2-byte integer column value into the buffer.
Put a string column value into the buffer.
Put an HSTORE column value into the buffer.
Put a JSON column value into the buffer.
Put a JSONB column value into the buffer.
Put a JSON string column value as text into the buffer.
Returns the number of bytes remaining in the buffer.
Returns the number of completed rows that are in the buffer.
Returns the number of completed rows that are in the buffer.
Attributes
- Definition Classes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any