Package io.dingodb.sdk.common.codec
Class DingoKeyValueCodec
java.lang.Object
io.dingodb.sdk.common.codec.DingoKeyValueCodec
- All Implemented Interfaces:
KeyValueCodec
-
Constructor Summary
ConstructorsConstructorDescriptionDingoKeyValueCodec(int codecVersion, int schemaVersion, long id, List<DingoSchema> schemas) DingoKeyValueCodec(int schemaVersion, long id, List<DingoSchema> schemas) DingoKeyValueCodec(long id, List<DingoSchema> schemas) -
Method Summary
Modifier and TypeMethodDescriptionObject[]Object[]decodeKeyPrefix(byte[] keyPrefix) byte[]byte[]encodeKeyPrefix(Object[] record, int columnCount) byte[]byte[]static DingoKeyValueCodecstatic DingoKeyValueCodecstatic DingoKeyValueCodecstatic DingoKeyValueCodecstatic DingoKeyValueCodecbyte[]resetPrefix(byte[] key) byte[]resetPrefix(byte[] key, long prefix) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.dingodb.sdk.common.codec.KeyValueCodec
encodeKeyPrefix
-
Constructor Details
-
DingoKeyValueCodec
-
DingoKeyValueCodec
-
DingoKeyValueCodec
-
-
Method Details
-
of
-
of
-
of
-
of
-
of
public static DingoKeyValueCodec of(int codecVersion, int schemaVersion, long id, List<Column> columns) -
decode
- Specified by:
decodein interfaceKeyValueCodec
-
decodeKeyPrefix
- Specified by:
decodeKeyPrefixin interfaceKeyValueCodec
-
encode
- Specified by:
encodein interfaceKeyValueCodec
-
encodeKey
- Specified by:
encodeKeyin interfaceKeyValueCodec
-
encodeKeyPrefix
- Specified by:
encodeKeyPrefixin interfaceKeyValueCodec
-
encodeMinKeyPrefix
public byte[] encodeMinKeyPrefix()- Specified by:
encodeMinKeyPrefixin interfaceKeyValueCodec
-
encodeMaxKeyPrefix
public byte[] encodeMaxKeyPrefix()- Specified by:
encodeMaxKeyPrefixin interfaceKeyValueCodec
-
resetPrefix
public byte[] resetPrefix(byte[] key) -
resetPrefix
public byte[] resetPrefix(byte[] key, long prefix) - Specified by:
resetPrefixin interfaceKeyValueCodec
-