| Modifier and Type | Field and Description |
|---|---|
static DoubleCodec |
INSTANCE |
| Constructor and Description |
|---|
DoubleCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type)
If codec can decode this a server datatype to a java class type
|
boolean |
canEncode(Object value)
Can Codec encode the java object type
|
String |
className()
Codec native type
|
Double |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal)
Decode from a mysql packet binary encoded a value to codec java type
|
double |
decodeBinaryDouble(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column) |
Double |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal)
Decode from a mysql packet text encoded a value to codec java type
|
double |
decodeTextDouble(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column) |
void |
encodeBinary(Writer encoder,
Object value,
Calendar cal,
Long maxLength)
Binary encode value to writer
|
void |
encodeText(Writer encoder,
com.singlestore.jdbc.client.Context context,
Object value,
Calendar cal,
Long maxLen)
Text encode value to writer
|
int |
getBinaryEncodeType()
Return server encoding data type
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanEncodeLongData, encodeBinaryAsString, encodeData, encodeLongDatapublic static final DoubleCodec INSTANCE
public boolean canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type)
Codecpublic boolean canEncode(Object value)
Codecpublic Double decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
CodecdecodeText in interface Codec<Double>buf - mysql packet bufferlength - encoded value lengthcolumn - server column metadatacal - calendarSQLDataException - if unexpected error occurs during decodingpublic double decodeTextDouble(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column)
throws SQLDataException
SQLDataExceptionpublic Double decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
CodecdecodeBinary in interface Codec<Double>buf - mysql packet bufferlength - encoded value lengthcolumn - server column metadatacal - calendarSQLDataException - if unexpected error occurs during decodingpublic double decodeBinaryDouble(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column)
throws SQLDataException
SQLDataExceptionpublic void encodeText(Writer encoder, com.singlestore.jdbc.client.Context context, Object value, Calendar cal, Long maxLen) throws IOException
CodecencodeText in interface Codec<Double>encoder - writercontext - connection contextvalue - value to encodecal - calendarmaxLen - maximum value lengthIOException - if any socket error occurspublic void encodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength) throws IOException
CodecencodeBinary in interface Codec<Double>encoder - writervalue - value to encodecal - calendarmaxLength - maximum value lengthIOException - if any socket error occurspublic int getBinaryEncodeType()
CodecgetBinaryEncodeType in interface Codec<Double>Copyright © 2023 SingleStore. All rights reserved.