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