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

Function compareNEStringViewConst

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

Source from the content-addressed store, hash-verified

2038}
2039
2040func compareNEStringViewConst(lhs, rhs vector.Any) vector.Any {
2041 ld := lhs.(*vector.View)
2042 l := ld.Any.(*vector.String)
2043 lx := ld.Index
2044 rconst := vector.StringValue(rhs, 0)
2045 n := lhs.Len()
2046 out := vector.NewFalse(n)
2047 for k := range n {
2048 if l.Value(uint32(lx[k])) != rconst {
2049 out.Set(k)
2050 }
2051 }
2052 return out
2053}
2054
2055func compareNEStringConstFlat(lhs, rhs vector.Any) vector.Any {
2056 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