public class TableCodec extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TableCodec.IndexValueSegments |
| 限定符和类型 | 字段和说明 |
|---|---|
static byte |
CommonHandleFlag |
static byte |
IndexVersionFlag |
static byte |
MaxOldEncodeValueLen |
static byte |
PartitionIDFlag |
static byte |
RestoreDataFlag |
| 构造器和说明 |
|---|
TableCodec() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Handle |
decodeHandle(byte[] value,
boolean isCommonHandle) |
static Handle |
decodeHandleInUniqueIndexValue(byte[] value,
boolean isCommonHandle) |
static Row |
decodeRow(byte[] value,
Handle handle,
TiTableInfo tableInfo) |
static byte[] |
encodeRow(List<TiColumnInfo> columnInfos,
Object[] values,
boolean isPkHandle,
boolean encodeWithNewRowFormat) |
static byte[] |
genIndexValue(Row row,
Handle handle,
int commonHandleVersion,
boolean distinct,
TiIndexInfo tiIndexInfo,
TiTableInfo tiTableInfo) |
static TableCodec.IndexValueSegments |
splitIndexValueForCommonHandleVersion1(CodecDataInput codecDataInput) |
public static byte MaxOldEncodeValueLen
public static byte IndexVersionFlag
public static byte PartitionIDFlag
public static byte CommonHandleFlag
public static byte RestoreDataFlag
public static byte[] encodeRow(List<TiColumnInfo> columnInfos, Object[] values, boolean isPkHandle, boolean encodeWithNewRowFormat) throws IllegalAccessException
public static Row decodeRow(byte[] value, Handle handle, TiTableInfo tableInfo)
public static Handle decodeHandle(byte[] value, boolean isCommonHandle)
public static byte[] genIndexValue(Row row, Handle handle, int commonHandleVersion, boolean distinct, TiIndexInfo tiIndexInfo, TiTableInfo tiTableInfo)
public static Handle decodeHandleInUniqueIndexValue(byte[] value, boolean isCommonHandle)
public static TableCodec.IndexValueSegments splitIndexValueForCommonHandleVersion1(CodecDataInput codecDataInput)
Copyright © 2023 PingCAP. All rights reserved.