package
1.1.0-beta
Repository: https://github.com/lcwangchao/tidb.git
Documentation: pkg.go.dev

# Functions

CutIndexKey cuts encoded index key into colIDs to bytes slices map.
CutIndexKeyNew cuts encoded index key into colIDs to bytes slices.
CutRowNew cuts encoded row into byte slices and return columns' byte slice.
DecodeColumnValue decodes data to a Datum according to the column info.
DecodeKeyHead decodes the key's head and gets the tableID, indexID.
DecodeRecordKey decodes the key and gets the tableID, handle.
DecodeRow decodes a byte slice into datums.
DecodeRowKey decodes the key and gets the handle.
DecodeRowWithMap decodes a byte slice into datums with a existing row map.
DecodeTableID decodes the table ID of the key, if the key is not table key, returns 0.
EncodeIndexSeekKey encodes an index value to kv.Key.
EncodeRecordKey encodes the recordPrefix, row handle into a kv.Key.
EncodeRow encode row data and column ids into a slice of byte.
EncodeRowKey encodes the table id and record handle into a kv.Key.
EncodeRowKeyWithHandle encodes the table id, row handle into a kv.Key.
EncodeTableIndexPrefix encodes index prefix with tableID and idxID.
EncodeTablePrefix encodes table prefix with table ID.
EncodeValue encodes a go value to bytes.
GenTableIndexPrefix composes index prefix with tableID: "t[tableID]_i".
GenTablePrefix composes table record and index prefix: "t[tableID]".
GenTableRecordPrefix composes record prefix with tableID: "t[tableID]_r".
GetTableHandleKeyRange returns table handle's key range with tableID.
GetTableIndexKeyRange returns table index's key range with tableID and indexID.
ReplaceRecordKeyTableID replace the tableID in the recordKey buf.
TablePrefix returns table's prefix 't'.
TruncateToRowKeyLen truncates the key to row key length if the key is longer than row key.

# Constants

TableSplitKeyLen is the length of key 't{table_id}' which is used for table split.