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