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

Function compareNEIntViewConst

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

Source from the content-addressed store, hash-verified

1339}
1340
1341func compareNEIntViewConst(lhs, rhs vector.Any) vector.Any {
1342 ld := lhs.(*vector.View)
1343 l := ld.Any.(*vector.Int)
1344 lx := ld.Index
1345 rconst := vector.IntValue(rhs, 0)
1346 n := lhs.Len()
1347 out := vector.NewFalse(n)
1348 for k := range n {
1349 if l.Value(uint32(lx[k])) != rconst {
1350 out.Set(k)
1351 }
1352 }
1353 return out
1354}
1355
1356func compareNEIntConstFlat(lhs, rhs vector.Any) vector.Any {
1357 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