Package io.dingodb.sdk.common.serial
Class RecordEncoder
java.lang.Object
io.dingodb.sdk.common.serial.RecordEncoder
-
Constructor Summary
ConstructorsConstructorDescriptionRecordEncoder(int codecVersion, int schemaVersion, long id) RecordEncoder(int codecVersion, int schemaVersion, List<DingoSchema> schemas, long id) RecordEncoder(int schemaVersion, long id) RecordEncoder(int schemaVersion, List<DingoSchema> schemas, long id) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]encodeKeyPrefix(Object[] record, int columnCount) byte[]byte[]byte[]encodeValue(Object[] record) byte[]resetKeyPrefix(byte[] key, long prefix) byte[]updateValueByColumns(byte[] buf, Object[] updateColumn, int[] columnIndexes) byte[]updateValueByRecord(byte[] buf, Object[] record, int[] columnIndexes)
-
Constructor Details
-
RecordEncoder
-
RecordEncoder
public RecordEncoder(int schemaVersion, long id) -
RecordEncoder
-
RecordEncoder
public RecordEncoder(int codecVersion, int schemaVersion, long id)
-
-
Method Details
-
encode
-
encodeKey
-
encodeValue
-
encodeMinKeyPrefix
public byte[] encodeMinKeyPrefix() -
encodeMaxKeyPrefix
public byte[] encodeMaxKeyPrefix() -
encodeKeyPrefix
-
updateValueByRecord
-
resetKeyPrefix
public byte[] resetKeyPrefix(byte[] key, long prefix) -
updateValueByColumns
-