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

Function NewGenericFromOrder

runtime/sam/expr/extent/span.go:51–53  ·  view source on GitHub ↗
(first, last super.Value, o order.Which)

Source from the content-addressed store, hash-verified

49}
50
51func NewGenericFromOrder(first, last super.Value, o order.Which) *Generic {
52 return NewGeneric(first, last, expr.NewValueCompareFn(o, o.NullsMax(true)))
53}
54
55func (g *Generic) In(val super.Value) bool {
56 return g.cmp(val, g.first) >= 0 && g.cmp(val, g.last) <= 0

Callers 3

GetPoolStatsFunction · 0.92
GetBranchStatsFunction · 0.92
SpanMethod · 0.92

Calls 3

NewValueCompareFnFunction · 0.92
NewGenericFunction · 0.85
NullsMaxMethod · 0.80

Tested by

no test coverage detected