| Constructor and Description |
|---|
LongCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type) |
boolean |
canEncode(Object value) |
String |
className() |
Long |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buffer,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
long |
decodeBinaryLong(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column) |
Long |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buffer,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
long |
decodeTextLong(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 maxLen) |
int |
getBinaryEncodeType() |
static long |
parseNotEmpty(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanEncodeLongData, encodeBinaryAsString, encodeData, encodeLongDatapublic static final LongCodec INSTANCE
public static long parseNotEmpty(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length)
public boolean canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type)
public Long decodeText(com.singlestore.jdbc.client.ReadableByteBuf buffer, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
decodeText in interface Codec<Long>SQLDataExceptionpublic long decodeTextLong(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column)
throws SQLDataException
SQLDataExceptionpublic Long decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buffer, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
decodeBinary in interface Codec<Long>SQLDataExceptionpublic long decodeBinaryLong(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 maxLen) throws IOException
encodeText in interface Codec<Long>IOExceptionpublic void encodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength) throws IOException
encodeBinary in interface Codec<Long>IOExceptionpublic int getBinaryEncodeType()
getBinaryEncodeType in interface Codec<Long>Copyright © 2023 SingleStore. All rights reserved.