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