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