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

Method Call

runtime/vam/expr/function/function.go:188–202  ·  view source on GitHub ↗
(args ...vector.Any)

Source from the content-addressed store, hash-verified

186}
187
188func (f *samFunc) Call(args ...vector.Any) vector.Any {
189 builders := make([]scode.Builder, len(args))
190 vals := make([]super.Value, len(args))
191 b := vector.NewDynamicBuilder()
192 for i := range args[0].Len() {
193 for k := range args {
194 b := &builders[k]
195 b.Truncate()
196 args[k].Serialize(b, i)
197 vals[k] = super.NewValue(args[k].Type(), b.Bytes().Body())
198 }
199 b.Write(f.fn.Call(vals))
200 }
201 return b.Build(f.sctx)
202}

Callers

nothing calls this directly

Calls 11

WriteMethod · 0.95
BuildMethod · 0.95
NewDynamicBuilderFunction · 0.92
NewValueFunction · 0.92
TruncateMethod · 0.80
BodyMethod · 0.80
LenMethod · 0.65
SerializeMethod · 0.65
TypeMethod · 0.65
CallMethod · 0.65
BytesMethod · 0.45

Tested by

no test coverage detected