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

Method nullsMax

runtime/sam/expr/sort.go:27–30  ·  view source on GitHub ↗

nullsMax reports whether s treats null as the maximum value.

()

Source from the content-addressed store, hash-verified

25
26// nullsMax reports whether s treats null as the maximum value.
27func (s *SortExpr) nullsMax() bool {
28 return s.Order == order.Asc && s.Nulls == order.NullsLast ||
29 s.Order == order.Desc && s.Nulls == order.NullsFirst
30}
31
32func (c *Comparator) sortStableIndices(vals []super.Value) []uint32 {
33 if len(c.exprs) == 0 {

Callers 2

sortStableIndicesMethod · 0.80
CompareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected