| Constructor and Description |
|---|
TimeCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type) |
boolean |
canEncode(Object value) |
String |
className() |
Time |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column,
Calendar calParam) |
Time |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
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 TimeCodec INSTANCE
public boolean canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type)
public Time decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
decodeText in interface Codec<Time>SQLDataExceptionpublic Time decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar calParam) throws SQLDataException
decodeBinary in interface Codec<Time>SQLDataExceptionpublic void encodeText(Writer encoder, com.singlestore.jdbc.client.Context context, Object val, Calendar providedCal, Long maxLen) throws IOException
encodeText in interface Codec<Time>IOExceptionpublic void encodeBinary(Writer encoder, Object value, Calendar providedCal, Long maxLength) throws IOException
encodeBinary in interface Codec<Time>IOExceptionpublic int getBinaryEncodeType()
getBinaryEncodeType in interface Codec<Time>Copyright © 2023 SingleStore. All rights reserved.