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