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