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