| Modifier and Type | Field and Description |
|---|---|
static ReaderCodec |
INSTANCE |
| Constructor and Description |
|---|
ReaderCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(ColumnDefinitionPacket column,
Class<?> type) |
boolean |
canEncode(Object value) |
boolean |
canEncodeLongData() |
String |
className() |
Reader |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column,
Calendar cal) |
Reader |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column,
Calendar cal) |
void |
encodeBinary(PacketWriter encoder,
Object val,
Calendar cal,
Long maxLength) |
byte[] |
encodeData(Reader reader,
Long maxLength) |
void |
encodeLongData(PacketWriter encoder,
Reader reader,
Long maxLength) |
void |
encodeText(PacketWriter encoder,
Context context,
Object val,
Calendar cal,
Long maxLen) |
int |
getBinaryEncodeType() |
public static final ReaderCodec INSTANCE
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
canDecode in interface com.singlestore.jdbc.codec.Codec<Reader>public String className()
className in interface com.singlestore.jdbc.codec.Codec<Reader>public Reader decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
decodeText in interface com.singlestore.jdbc.codec.Codec<Reader>SQLDataExceptionpublic Reader decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
decodeBinary in interface com.singlestore.jdbc.codec.Codec<Reader>SQLDataExceptionpublic boolean canEncode(Object value)
canEncode in interface com.singlestore.jdbc.codec.Codec<Reader>public void encodeText(PacketWriter encoder, Context context, Object val, Calendar cal, Long maxLen) throws IOException
encodeText in interface com.singlestore.jdbc.codec.Codec<Reader>IOExceptionpublic void encodeBinary(PacketWriter encoder, Object val, Calendar cal, Long maxLength) throws IOException
encodeBinary in interface com.singlestore.jdbc.codec.Codec<Reader>IOExceptionpublic void encodeLongData(PacketWriter encoder, Reader reader, Long maxLength) throws IOException
encodeLongData in interface com.singlestore.jdbc.codec.Codec<Reader>IOExceptionpublic byte[] encodeData(Reader reader, Long maxLength) throws IOException
encodeData in interface com.singlestore.jdbc.codec.Codec<Reader>IOExceptionpublic int getBinaryEncodeType()
getBinaryEncodeType in interface com.singlestore.jdbc.codec.Codec<Reader>public boolean canEncodeLongData()
canEncodeLongData in interface com.singlestore.jdbc.codec.Codec<Reader>Copyright © 2023 SingleStore. All rights reserved.