public class ByteArrayRow extends AbstractResultsetRow
exceptionInterceptor, metadata, valueDecoder, wasNull
Constructor and Description |
---|
ByteArrayRow(byte[][] internalRowData,
ExceptionInterceptor exceptionInterceptor) |
ByteArrayRow(byte[][] internalRowData,
ExceptionInterceptor exceptionInterceptor,
ValueDecoder valueDecoder) |
Modifier and Type | Method and Description |
---|---|
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 byte array.
|
boolean |
isBinaryEncoded() |
void |
setBytes(int index,
byte[] value)
Sets the given byte array as a raw column value (only works currently with ByteArrayRow).
|
getValueFromBytes, setMetadata, wasNull
public ByteArrayRow(byte[][] internalRowData, ExceptionInterceptor exceptionInterceptor, ValueDecoder valueDecoder)
public ByteArrayRow(byte[][] internalRowData, ExceptionInterceptor exceptionInterceptor)
public boolean isBinaryEncoded()
public byte[] getBytes(int index)
Row
index
- index of column (starting at 0) to return from.NULL
, the value returned is null
public void setBytes(int index, byte[] value)
Row
index
- index of the column (starting at 0) to set to.value
- the (raw) value to setpublic boolean getNull(int columnIndex)
Row
columnIndex
- of the column value (starting at 0) to check.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