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