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