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