public interface RowDecoder
| Modifier and Type | Method and Description |
|---|---|
<T> T |
decode(Codec<T> codec,
Calendar calendar,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength,
com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex)
Decode data according to data type.
|
boolean |
decodeBoolean(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to boolean.
|
byte |
decodeByte(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to byte.
|
Date |
decodeDate(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength,
Calendar cal)
Decode data according to Date.
|
double |
decodeDouble(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to double.
|
float |
decodeFloat(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to float.
|
int |
decodeInt(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to int.
|
long |
decodeLong(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to long.
|
short |
decodeShort(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to short.
|
String |
decodeString(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to String.
|
Time |
decodeTime(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength,
Calendar cal)
Decode data according to Time.
|
Timestamp |
decodeTimestamp(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength,
Calendar cal)
Decode data according to Timestamp.
|
Object |
defaultDecode(Configuration conf,
com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
Decode data according to data type.
|
int |
setPosition(int newIndex,
MutableInt fieldIndex,
int maxIndex,
StandardReadableByteBuf rowBuf,
byte[] nullBitmap,
com.singlestore.jdbc.client.ColumnDecoder[] metadataList)
Position the read index on buffer to data at indicated index.
|
boolean |
wasNull(byte[] nullBitmap,
MutableInt fieldIndex,
MutableInt fieldLength)
Indicate if last decoded value was null
|
boolean wasNull(byte[] nullBitmap,
MutableInt fieldIndex,
MutableInt fieldLength)
nullBitmap - null bitmapfieldIndex - field indexfieldLength - field lengthint setPosition(int newIndex,
MutableInt fieldIndex,
int maxIndex,
StandardReadableByteBuf rowBuf,
byte[] nullBitmap,
com.singlestore.jdbc.client.ColumnDecoder[] metadataList)
newIndex - new data indexfieldIndex - current field indexmaxIndex - maximum indexrowBuf - row buffernullBitmap - null bitmapmetadataList - metadata list<T> T decode(Codec<T> codec, Calendar calendar, StandardReadableByteBuf rowBuf, MutableInt fieldLength, com.singlestore.jdbc.client.ColumnDecoder[] metadataList, MutableInt fieldIndex) throws SQLException
T - Codec default return typecodec - current codeccalendar - calendarrowBuf - row bufferfieldLength - field lengthmetadataList - metadatasfieldIndex - field indexSQLException - if any decoding error occursObject defaultDecode(Configuration conf, com.singlestore.jdbc.client.ColumnDecoder[] metadataList, MutableInt fieldIndex, StandardReadableByteBuf rowBuf, MutableInt fieldLength) throws SQLException
conf - configurationmetadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if any decoding error occursbyte decodeByte(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to byte valueboolean decodeBoolean(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to boolean valueDate decodeDate(com.singlestore.jdbc.client.ColumnDecoder[] metadataList, MutableInt fieldIndex, StandardReadableByteBuf rowBuf, MutableInt fieldLength, Calendar cal) throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthcal - calendarSQLException - if data type cannot be decoded to Date valueTime decodeTime(com.singlestore.jdbc.client.ColumnDecoder[] metadataList, MutableInt fieldIndex, StandardReadableByteBuf rowBuf, MutableInt fieldLength, Calendar cal) throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthcal - calendarSQLException - if data type cannot be decoded to Time valueTimestamp decodeTimestamp(com.singlestore.jdbc.client.ColumnDecoder[] metadataList, MutableInt fieldIndex, StandardReadableByteBuf rowBuf, MutableInt fieldLength, Calendar cal) throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthcal - calendarSQLException - if data type cannot be decoded to Timestamp valueshort decodeShort(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to short valueint decodeInt(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to int valueString decodeString(com.singlestore.jdbc.client.ColumnDecoder[] metadataList, MutableInt fieldIndex, StandardReadableByteBuf rowBuf, MutableInt fieldLength) throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to String valuelong decodeLong(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to long valuefloat decodeFloat(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to float valuedouble decodeDouble(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
MutableInt fieldIndex,
StandardReadableByteBuf rowBuf,
MutableInt fieldLength)
throws SQLException
metadataList - metadata listfieldIndex - field indexrowBuf - row bufferfieldLength - field lengthSQLException - if data type cannot be decoded to double valueCopyright © 2025 SingleStore. All rights reserved.