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

Function compareEQFloatConstView

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

Source from the content-addressed store, hash-verified

683}
684
685func compareEQFloatConstView(lhs, rhs vector.Any) vector.Any {
686 lconst := vector.FloatValue(lhs, 0)
687 rd := rhs.(*vector.View)
688 r := rd.Any.(*vector.Float)
689 rx := rd.Index
690 n := lhs.Len()
691 out := vector.NewFalse(n)
692 for k := range n {
693 if lconst == r.Value(uint32(rx[k])) {
694 out.Set(k)
695 }
696 }
697 return out
698}
699
700func compareEQFloatConstConst(lhs, rhs vector.Any) vector.Any {
701 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