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

Function IsIndexKey

pkg/tablecodec/tablecodec.go:1154–1156  ·  view source on GitHub ↗

IsIndexKey is used to check whether the key is an index key.

(k []byte)

Source from the content-addressed store, hash-verified

1152
1153// IsIndexKey is used to check whether the key is an index key.
1154func IsIndexKey(k []byte) bool {
1155 return len(k) > 11 && k[0] == 't' && k[10] == 'i'
1156}
1157
1158// IsTableKey is used to check whether the key is a table key.
1159func IsTableKey(k []byte) bool {

Callers 9

decodeKeyFromStringMethod · 0.92
KeyNeedToLockFunction · 0.92
getAllDataForTableIDFunction · 0.92
evalStringMethod · 0.92
DecodeKeyFunction · 0.92
decodeIndexIDFunction · 0.92
IsUntouchedIndexKValueFunction · 0.85

Calls

no outgoing calls

Tested by 1

getAllDataForTableIDFunction · 0.74