| Constructor and Description |
|---|
LongCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(ColumnDefinitionPacket column,
Class<?> type) |
boolean |
canEncode(Object value) |
String |
className() |
Long |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buffer,
int length,
ColumnDefinitionPacket column,
Calendar cal) |
long |
decodeBinaryLong(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column) |
Long |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buffer,
int length,
ColumnDefinitionPacket column,
Calendar cal) |
long |
decodeTextLong(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column) |
void |
encodeBinary(PacketWriter encoder,
Object value,
Calendar cal,
Long maxLength) |
void |
encodeText(PacketWriter encoder,
Context context,
Object value,
Calendar cal,
Long maxLen) |
int |
getBinaryEncodeType() |
static long |
parseNotEmpty(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length) |
public static final LongCodec INSTANCE
public static long parseNotEmpty(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length)
public String className()
className in interface com.singlestore.jdbc.codec.Codec<Long>public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
canDecode in interface com.singlestore.jdbc.codec.Codec<Long>public boolean canEncode(Object value)
canEncode in interface com.singlestore.jdbc.codec.Codec<Long>public Long decodeText(com.singlestore.jdbc.client.ReadableByteBuf buffer, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
decodeText in interface com.singlestore.jdbc.codec.Codec<Long>SQLDataExceptionpublic long decodeTextLong(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column)
throws SQLDataException
SQLDataExceptionpublic Long decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buffer, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
decodeBinary in interface com.singlestore.jdbc.codec.Codec<Long>SQLDataExceptionpublic long decodeBinaryLong(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column)
throws SQLDataException
SQLDataExceptionpublic void encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLen) throws IOException
encodeText in interface com.singlestore.jdbc.codec.Codec<Long>IOExceptionpublic void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException
encodeBinary in interface com.singlestore.jdbc.codec.Codec<Long>IOExceptionpublic int getBinaryEncodeType()
getBinaryEncodeType in interface com.singlestore.jdbc.codec.Codec<Long>Copyright © 2023 SingleStore. All rights reserved.