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

Method ReverseTagMap

vector/dynamic.go:81–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (d *Dynamic) ReverseTagMap() [][]uint32 {
82 if t := d.reverseTagMap.Load(); t != nil {
83 return *t
84 }
85 if t := d.newReverseTagMap(); d.reverseTagMap.CompareAndSwap(nil, &t) {
86 return t
87 }
88 return *d.reverseTagMap.Load()
89}
90
91func (d *Dynamic) newReverseTagMap() [][]uint32 {
92 reverse := make([][]uint32, len(d.Values))

Callers 2

ripFunction · 0.80
BoolMaskFunction · 0.80

Calls 2

newReverseTagMapMethod · 0.95
LoadMethod · 0.65

Tested by

no test coverage detected