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

Method SortStableReader

runtime/sam/expr/sort.go:235–240  ·  view source on GitHub ↗

SortStableReader returns a reader for vals sorted according to c, with equal values in their original order.

(vals []super.Value)

Source from the content-addressed store, hash-verified

233// SortStableReader returns a reader for vals sorted according to c, with equal
234// values in their original order.
235func (c *Comparator) SortStableReader(vals []super.Value) sio.Reader {
236 return &sortStableReader{
237 indices: c.sortStableIndices(vals),
238 vals: vals,
239 }
240}
241
242type sortStableReader struct {
243 indices []uint32

Callers 2

SpillMethod · 0.80
writeObjectMethod · 0.80

Calls 1

sortStableIndicesMethod · 0.95

Tested by

no test coverage detected