MCPcopy Index your code
hub / github.com/pingcap/tidb / CutIndexKeyNew

Function CutIndexKeyNew

pkg/tablecodec/tablecodec.go:764–768  ·  view source on GitHub ↗

CutIndexKeyNew cuts encoded index key into colIDs to bytes slices. The returned value b is the remaining bytes of the key which would be empty if it is unique index or handle data if it is non-unique index.

(key kv.Key, length int)

Source from the content-addressed store, hash-verified

762// The returned value b is the remaining bytes of the key which would be empty if it is unique index or handle data
763// if it is non-unique index.
764func CutIndexKeyNew(key kv.Key, length int) (values [][]byte, b []byte, err error) {
765 values = make([][]byte, length)
766 b, err = CutIndexKeyTo(key, values)
767 return
768}
769
770// CutCommonHandle cuts encoded common handle key into colIDs to bytes slices.
771// The returned value b is the remaining bytes of the key which would be empty if it is unique index or handle data

Callers 5

ProcessMethod · 0.92
ProcessMethod · 0.92
TestCutKeyNewFunction · 0.85
decodeIndexKvGeneralFunction · 0.85

Calls 1

CutIndexKeyToFunction · 0.85

Tested by 1

TestCutKeyNewFunction · 0.68