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

Method Lookup

typevectortable.go:13–22  ·  view source on GitHub ↗
(types []Type)

Source from the content-addressed store, hash-verified

11}
12
13func (t *TypeVectorTable) Lookup(types []Type) int {
14 for k, typ := range t.types {
15 if typ.equal(types) {
16 return k
17 }
18 }
19 k := len(t.types)
20 t.types = append(t.types, newTypeVector(types))
21 return k
22}
23
24func (t *TypeVectorTable) LookupByValues(vals []Value) int {
25 for k, typ := range t.types {

Callers

nothing calls this directly

Calls 2

newTypeVectorFunction · 0.85
equalMethod · 0.80

Tested by

no test coverage detected