MCPcopy Create free account
hub / github.com/brimdata/super / newForwardTagMap

Method newForwardTagMap

vector/dynamic.go:71–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71func (d *Dynamic) newForwardTagMap() []uint32 {
72 counts := make([]uint32, len(d.Values))
73 forward := make([]uint32, len(d.Tags))
74 for slot, tag := range d.Tags {
75 forward[slot] = counts[tag]
76 counts[tag]++
77 }
78 return forward
79}
80
81func (d *Dynamic) ReverseTagMap() [][]uint32 {
82 if t := d.reverseTagMap.Load(); t != nil {

Callers 1

ForwardTagMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected