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

Function compareNEStringConstFlat

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

Source from the content-addressed store, hash-verified

2053}
2054
2055func compareNEStringConstFlat(lhs, rhs vector.Any) vector.Any {
2056 lconst := vector.StringValue(lhs, 0)
2057 r := rhs.(*vector.String)
2058 n := lhs.Len()
2059 out := vector.NewFalse(n)
2060 for k := range n {
2061 if lconst != r.Value(k) {
2062 out.Set(k)
2063 }
2064 }
2065 return out
2066}
2067
2068func compareNEStringConstDict(lhs, rhs vector.Any) vector.Any {
2069 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