| Constructor and Description |
|---|
ByteCodec() |
| 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 buffer,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
byte |
decodeBinaryByte(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column) |
Byte |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buffer,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
byte |
decodeTextByte(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column) |
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() |
static long |
parseBit(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanEncodeLongData, encodeBinaryAsString, encodeData, encodeLongDatapublic static final ByteCodec INSTANCE
public static long parseBit(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length)
public boolean canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type)
public Byte decodeText(com.singlestore.jdbc.client.ReadableByteBuf buffer, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
decodeText in interface Codec<Byte>SQLDataExceptionpublic byte decodeTextByte(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column)
throws SQLDataException
SQLDataExceptionpublic Byte decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buffer, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
decodeBinary in interface Codec<Byte>SQLDataExceptionpublic byte decodeBinaryByte(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column)
throws SQLDataException
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.