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