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

Method LookupTypeArray

context.go:191–204  ·  view source on GitHub ↗
(inner Type)

Source from the content-addressed store, hash-verified

189}
190
191func (c *Context) LookupTypeArray(inner Type) *TypeArray {
192 c.mu.Lock()
193 defer c.mu.Unlock()
194 if c.arrays == nil {
195 c.arrays = make(map[Type]*TypeArray)
196 }
197 if typ, ok := c.arrays[inner]; ok {
198 return typ
199 }
200 typ := NewTypeArray(c.nextIDWithLock(), inner)
201 c.enterWithLock(typ)
202 c.arrays[inner] = typ
203 return typ
204}
205
206func (c *Context) LookupTypeSet(inner Type) *TypeSet {
207 c.mu.Lock()

Callers 15

DecodeTypeValueMethod · 0.95
exprMethod · 0.80
semMapCallMethod · 0.80
subqueryExprMethod · 0.80
exprMethod · 0.80
convertArrayMethod · 0.80
convertTypeMethod · 0.80
encodeArrayMethod · 0.80
lookupTypeMethod · 0.80
projectMethod · 0.80
evalMethod · 0.80
EvalMethod · 0.80

Calls 3

nextIDWithLockMethod · 0.95
enterWithLockMethod · 0.95
NewTypeArrayFunction · 0.85

Tested by

no test coverage detected