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