public class TextBufferRow extends AbstractBufferRow
homePosition, lastRequestedIndex, lastRequestedPos, rowFromServerexceptionInterceptor, metadata, valueDecoder, wasNull| Constructor and Description |
|---|
TextBufferRow(NativePacketPayload buf,
ColumnDefinition cd,
ExceptionInterceptor exceptionInterceptor,
ValueDecoder valueDecoder) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
findAndSeekToOffset(int index) |
byte[] |
getBytes(int index)
Returns the value at the given column as a byte array.
|
boolean |
getNull(int columnIndex)
Check whether a column is NULL and update the 'wasNull' status.
|
<T> T |
getValue(int columnIndex,
ValueFactory<T> vf)
Implementation of getValue() based on the underlying Buffer object.
|
Row |
setMetadata(ColumnDefinition f)
Set metadata to enable getValue functionality.
|
getValueFromBytes, wasNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisBinaryEncodedpublic TextBufferRow(NativePacketPayload buf, ColumnDefinition cd, ExceptionInterceptor exceptionInterceptor, ValueDecoder valueDecoder)
protected int findAndSeekToOffset(int index)
public byte[] getBytes(int index)
Rowindex - index of column (starting at 0) to return from.NULL, the value returned is nullpublic boolean getNull(int columnIndex)
RowcolumnIndex - of the column value (starting at 0) to check.public Row setMetadata(ColumnDefinition f)
RowsetMetadata in interface RowsetMetadata in class AbstractResultsetRowf - ColumnDefinitionRowpublic <T> T getValue(int columnIndex,
ValueFactory<T> vf)
T - type to decode tocolumnIndex - index of column to retrieve value from (0-indexed, not JDBC 1-indexed)vf - value factory used to create the return value after decoding