MCPcopy
hub / github.com/pingcap/tidb / EncodeRowKeyWithHandle

Function EncodeRowKeyWithHandle

pkg/tablecodec/tablecodec.go:114–116  ·  view source on GitHub ↗

EncodeRowKeyWithHandle encodes the table id, row handle into a kv.Key

(tableID int64, handle kv.Handle)

Source from the content-addressed store, hash-verified

112
113// EncodeRowKeyWithHandle encodes the table id, row handle into a kv.Key
114func EncodeRowKeyWithHandle(tableID int64, handle kv.Handle) kv.Key {
115 return EncodeRowKey(tableID, handle.Encoded())
116}
117
118// CutRowKeyPrefix cuts the row key prefix.
119func CutRowKeyPrefix(key kv.Key) []byte {

Callers 15

fileFunction · 0.92
keyFunction · 0.92
TestSplitScatterFunction · 0.92
TestGetSplitKeyPerRegionFunction · 0.92
handleBufferedHandlesMethod · 0.92
TestGetNextIntHandleFunction · 0.92
TestClusterSplitFunction · 0.92

Calls 2

EncodeRowKeyFunction · 0.85
EncodedMethod · 0.65

Tested by 15

fileFunction · 0.74
keyFunction · 0.74
TestSplitScatterFunction · 0.74
TestGetSplitKeyPerRegionFunction · 0.74
TestGetNextIntHandleFunction · 0.74
TestClusterSplitFunction · 0.74
prepareTestTableDataFunction · 0.74