Struct timely_sort::LSBRadixSorter [] [src]

pub struct LSBRadixSorter<T> { /* fields omitted */ }

A few buffers capable of radix sorting by least significant byte.

The sorter allows the use of multiple different key bytes, determined by a type U: Unsigned. Currently, one is allowed to mix and match these as records are pushed, which may be a design bug.

Methods

impl<T> RadixSorter<T>
[src]

Constructs a new radix sorter.

Pushes a sequence of elements into the sorter.

Pushes a single element into the sorter.

Pushes a batch of elements into the sorter, and transfers ownership of the containing allocation.

Sorts a sequence of batches, re-using the allocations where possible and re-populating batches.

Finishes a sorting session by allocating and populating a sequence of batches.

Finishes a sorting session by populating a supplied sequence.

Consumes supplied buffers for future re-use by the sorter.

This method is equivalent to self.rebalance(buffers, usize::max_value()).

Either consumes from or pushes into buffers to leave intended spare buffers with the sorter.