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

Method eval

runtime/vam/expr/arrayexpr.go:44–47  ·  view source on GitHub ↗
(in ...vector.Any)

Source from the content-addressed store, hash-verified

42}
43
44func (a *ArrayExpr) eval(in ...vector.Any) vector.Any {
45 offsets, inner := buildList(a.sctx, a.elems, in)
46 return vector.NewArray(a.sctx.LookupTypeArray(inner.Type()), offsets, inner)
47}
48
49func buildList(sctx *super.Context, elems []ListElem, in []vector.Any) ([]uint32, vector.Any) {
50 n := in[0].Len()

Callers

nothing calls this directly

Calls 4

NewArrayFunction · 0.92
buildListFunction · 0.85
LookupTypeArrayMethod · 0.80
TypeMethod · 0.65

Tested by

no test coverage detected