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

Function compareEQIntViewConst

runtime/vam/expr/comparefuncs.go:176–189  ·  view source on GitHub ↗
(lhs, rhs vector.Any)

Source from the content-addressed store, hash-verified

174}
175
176func compareEQIntViewConst(lhs, rhs vector.Any) vector.Any {
177 ld := lhs.(*vector.View)
178 l := ld.Any.(*vector.Int)
179 lx := ld.Index
180 rconst := vector.IntValue(rhs, 0)
181 n := lhs.Len()
182 out := vector.NewFalse(n)
183 for k := range n {
184 if l.Value(uint32(lx[k])) == rconst {
185 out.Set(k)
186 }
187 }
188 return out
189}
190
191func compareEQIntConstFlat(lhs, rhs vector.Any) vector.Any {
192 lconst := vector.IntValue(lhs, 0)

Callers

nothing calls this directly

Calls 5

IntValueFunction · 0.92
NewFalseFunction · 0.92
LenMethod · 0.65
ValueMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected