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

Function IsRecordKey

pkg/tablecodec/tablecodec.go:1149–1151  ·  view source on GitHub ↗

IsRecordKey is used to check whether the key is an record key.

(k []byte)

Source from the content-addressed store, hash-verified

1147
1148// IsRecordKey is used to check whether the key is an record key.
1149func IsRecordKey(k []byte) bool {
1150 return len(k) > 11 && k[0] == 't' && k[10] == 'r'
1151}
1152
1153// IsIndexKey is used to check whether the key is an index key.
1154func IsIndexKey(k []byte) bool {

Callers 15

decodeKeyFromStringMethod · 0.92
KeyNeedToLockFunction · 0.92
runMethod · 0.92
addMethod · 0.92
iterateSnapshotKeysFunction · 0.92
getAllDataForTableIDFunction · 0.92
nextKeyFunction · 0.92

Calls

no outgoing calls

Tested by 2

getAllDataForTableIDFunction · 0.74