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

Function compareEQFloatViewConst

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

Source from the content-addressed store, hash-verified

640}
641
642func compareEQFloatViewConst(lhs, rhs vector.Any) vector.Any {
643 ld := lhs.(*vector.View)
644 l := ld.Any.(*vector.Float)
645 lx := ld.Index
646 rconst := vector.FloatValue(rhs, 0)
647 n := lhs.Len()
648 out := vector.NewFalse(n)
649 for k := range n {
650 if l.Value(uint32(lx[k])) == rconst {
651 out.Set(k)
652 }
653 }
654 return out
655}
656
657func compareEQFloatConstFlat(lhs, rhs vector.Any) vector.Any {
658 lconst := vector.FloatValue(lhs, 0)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected