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