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

Method Call

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

Source from the content-addressed store, hash-verified

16}
17
18func (c *CIDRMatch) Call(args ...vector.Any) vector.Any {
19 if vec, ok := expr.CheckForNullThenError(args); ok {
20 return vec
21 }
22 if args[0].Type().ID() != super.IDNet {
23 return vector.NewWrappedError(c.sctx, "cidr_match: not a net", args[0])
24 }
25 return c.pw.Eval(args...)
26}
27
28func cidrMatch(vec ...vector.Any) vector.Any {
29 netVec, valVec := vec[0], vec[1]

Callers

nothing calls this directly

Calls 5

CheckForNullThenErrorFunction · 0.92
NewWrappedErrorFunction · 0.92
IDMethod · 0.65
TypeMethod · 0.65
EvalMethod · 0.65

Tested by

no test coverage detected