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

Method LookupByValues

typevectortable.go:24–33  ·  view source on GitHub ↗
(vals []Value)

Source from the content-addressed store, hash-verified

22}
23
24func (t *TypeVectorTable) LookupByValues(vals []Value) int {
25 for k, typ := range t.types {
26 if typ.equalToValues(vals) {
27 return k
28 }
29 }
30 k := len(t.types)
31 t.types = append(t.types, newTypeVectorFromValues(vals))
32 return k
33}
34
35func (t *TypeVectorTable) Types(id int) []Type {
36 return t.types[id]

Callers

nothing calls this directly

Calls 2

newTypeVectorFromValuesFunction · 0.85
equalToValuesMethod · 0.80

Tested by

no test coverage detected