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

Function appendTableIndexPrefix

pkg/tablecodec/tablecodec.go:1129–1134  ·  view source on GitHub ↗

appendTableIndexPrefix appends table index prefix "t[tableID]_i".

(buf []byte, tableID int64)

Source from the content-addressed store, hash-verified

1127
1128// appendTableIndexPrefix appends table index prefix "t[tableID]_i".
1129func appendTableIndexPrefix(buf []byte, tableID int64) []byte {
1130 buf = append(buf, tablePrefix...)
1131 buf = codec.EncodeInt(buf, tableID)
1132 buf = append(buf, indexPrefixSep...)
1133 return buf
1134}
1135
1136// GenTableRecordPrefix composes record prefix with tableID: "t[tableID]_r".
1137func GenTableRecordPrefix(tableID int64) kv.Key {

Callers 4

EncodeIndexSeekKeyFunction · 0.85
EncodeTableIndexPrefixFunction · 0.85
GenTableIndexPrefixFunction · 0.85
GenIndexKeyFunction · 0.85

Calls 1

EncodeIntFunction · 0.92

Tested by

no test coverage detected