MCPcopy Create free account
hub / github.com/pingcap/tidb / buildColumnIDOffsets

Function buildColumnIDOffsets

pkg/tablecodec/tablecodec.go:905–911  ·  view source on GitHub ↗
(allCols []rowcodec.ColInfo)

Source from the content-addressed store, hash-verified

903}
904
905func buildColumnIDOffsets(allCols []rowcodec.ColInfo) map[int64]int {
906 colIDOffsets := make(map[int64]int, len(allCols))
907 for i, col := range allCols {
908 colIDOffsets[col.ID] = i
909 }
910 return colIDOffsets
911}
912
913func buildRestoredColumn(allCols []rowcodec.ColInfo) []rowcodec.ColInfo {
914 restoredColumns := make([]rowcodec.ColInfo, 0, len(allCols))

Callers 1

decodeRestoredValuesV5Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…