public class TextBufferRow extends AbstractBufferRow
homePosition, lastRequestedIndex, lastRequestedPos, rowFromServer
exceptionInterceptor, 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, wasNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBinaryEncoded
public TextBufferRow(NativePacketPayload buf, ColumnDefinition cd, ExceptionInterceptor exceptionInterceptor, ValueDecoder valueDecoder)
protected int findAndSeekToOffset(int index)
public byte[] getBytes(int index)
Row
index
- index of column (starting at 0) to return from.NULL
, the value returned is null
public boolean getNull(int columnIndex)
Row
columnIndex
- of the column value (starting at 0) to check.public Row setMetadata(ColumnDefinition f)
Row
setMetadata
in interface Row
setMetadata
in class AbstractResultsetRow
f
- ColumnDefinition
Row
public <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