| Modifier and Type | Field and Description |
|---|---|
static BitSetCodec |
INSTANCE |
| Constructor and Description |
|---|
BitSetCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type) |
boolean |
canEncode(Object value) |
String |
className() |
BitSet |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
BitSet |
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 length) |
int |
getBinaryEncodeType() |
static BitSet |
parseBit(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length) |
static void |
revertOrder(byte[] array) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanEncodeLongData, encodeBinaryAsString, encodeData, encodeLongDatapublic static final BitSetCodec INSTANCE
public static BitSet parseBit(com.singlestore.jdbc.client.ReadableByteBuf buf, int length)
public static void revertOrder(byte[] array)
public boolean canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type)
public BitSet decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar cal)
decodeText in interface Codec<BitSet>public BitSet decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar cal)
decodeBinary in interface Codec<BitSet>public void encodeText(Writer encoder, com.singlestore.jdbc.client.Context context, Object value, Calendar cal, Long length) throws IOException
encodeText in interface Codec<BitSet>IOExceptionpublic void encodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength) throws IOException
encodeBinary in interface Codec<BitSet>IOExceptionpublic int getBinaryEncodeType()
getBinaryEncodeType in interface Codec<BitSet>Copyright © 2023 SingleStore. All rights reserved.