| Modifier and Type | Field and Description |
|---|---|
| private boolean[] | isNull
If binary-encoded, the NULL status of each column is at the beginning of the row, so we |
| private int | preNullBitmaskHomePosition
The home position before the is-null bitmask for server-side prepared statement result sets |
| Access | Constructor and Description |
|---|---|
| public | BinaryBufferRow(NativePacketPayload buf, ColumnDefinition cd, ExceptionInterceptor exceptionInterceptor, ValueDecoder valueDecoder)
|
| Modifier and Type | Method and Description |
|---|---|
| protected int | findAndSeekToOffset(int index)
Implements abstract com.
|
| public byte[] | getBytes(int
index of column (starting at 0) to return from. index)Overrides default com. Returns the value at the given column as a byte array. |
| public boolean | getNull(int
of the column value (starting at 0) to check. columnIndex)Implements com. Check whether a column is NULL and update the 'wasNull' status. |
| public <T> T | getValue(int
index of column to retrieve value from (0-indexed, not JDBC 1-indexed) columnIndex, ValueFactory<T> value factory used to create the return value after decoding vf)Implements com. Implementation of getValue() based on the underlying Buffer object. |
| public boolean | |
| public void | setBytes(int
index of the column (starting at 0) to set to. columnIndex, byte[] the (raw) value to set value)Overrides default com. Sets the given byte array as a raw column value (only works currently with ByteArrayRow). |
| public Row | setMetadata(ColumnDefinition f)
Overrides com. Overrides default com. Set metadata to enable getValue functionality. |
| private void | setupIsNullBitmask()
Unpacks the bitmask at the head of the row packet that tells us what columns hold null values, and sets the "home" position directly after the bitmask. |
| isNull | back to summary |
|---|---|
| private boolean[] isNull If binary-encoded, the NULL status of each column is at the beginning of the row, so we | |
| preNullBitmaskHomePosition | back to summary |
|---|---|
| private int preNullBitmaskHomePosition The home position before the is-null bitmask for server-side prepared statement result sets | |
| BinaryBufferRow | back to summary |
|---|---|
| public BinaryBufferRow(NativePacketPayload buf, ColumnDefinition cd, ExceptionInterceptor exceptionInterceptor, ValueDecoder valueDecoder) | |
| findAndSeekToOffset | back to summary |
|---|---|
| protected int findAndSeekToOffset(int index) Implements abstract com.
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes(int index) Overrides default com. Doc from com. Returns the value at the given column as a byte array. The bytes represent the raw values returned by the server.
| |
| getNull | back to summary |
|---|---|
| public boolean getNull(int columnIndex) Implements com. Check whether a column is NULL and update the 'wasNull' status.
| |
| getValue | back to summary |
|---|---|
| public <T> T getValue(int columnIndex, ValueFactory<T> vf) Implements com. Implementation of getValue() based on the underlying Buffer object. Delegate to superclass for decoding.
| |
| isBinaryEncoded | back to summary |
|---|---|
| public boolean isBinaryEncoded() Overrides default com.
| |
| setBytes | back to summary |
|---|---|
| public void setBytes(int columnIndex, byte[] value) Overrides default com. Doc from com. Sets the given byte array as a raw column value (only works currently with ByteArrayRow).
| |
| setMetadata | back to summary |
|---|---|
| public Row setMetadata(ColumnDefinition f) Overrides com. Overrides default com. Doc from com. Set metadata to enable getValue functionality.
| |
| setupIsNullBitmask | back to summary |
|---|---|
| private void setupIsNullBitmask() Unpacks the bitmask at the head of the row packet that tells us what columns hold null values, and sets the "home" position directly after the bitmask. | |