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

Function compareEQIntConstView

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

Source from the content-addressed store, hash-verified

217}
218
219func compareEQIntConstView(lhs, rhs vector.Any) vector.Any {
220 lconst := vector.IntValue(lhs, 0)
221 rd := rhs.(*vector.View)
222 r := rd.Any.(*vector.Int)
223 rx := rd.Index
224 n := lhs.Len()
225 out := vector.NewFalse(n)
226 for k := range n {
227 if lconst == r.Value(uint32(rx[k])) {
228 out.Set(k)
229 }
230 }
231 return out
232}
233
234func compareEQIntConstConst(lhs, rhs vector.Any) vector.Any {
235 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