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