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

Function compareEQStringConstView

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

Source from the content-addressed store, hash-verified

916}
917
918func compareEQStringConstView(lhs, rhs vector.Any) vector.Any {
919 lconst := vector.StringValue(lhs, 0)
920 rd := rhs.(*vector.View)
921 r := rd.Any.(*vector.String)
922 rx := rd.Index
923 n := lhs.Len()
924 out := vector.NewFalse(n)
925 for k := range n {
926 if lconst == r.Value(uint32(rx[k])) {
927 out.Set(k)
928 }
929 }
930 return out
931}
932
933func compareEQStringConstConst(lhs, rhs vector.Any) vector.Any {
934 lconst := vector.StringValue(lhs, 0)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected