pub struct CpuRadixPartitioner { /* private fields */ }
Expand description

A CPU radix partitioner that provides partitioning functions.

Implementations

Creates a new CPU radix partitioner.

Computes the prefix sum.

The prefix sum performs a scan over all partitioning keys. It first computes a histogram. The prefix sum is computed from this histogram.

The prefix sum serves two main purposes:

  1. The prefix sums are used in partition as offsets in an array for the output partitions.
  2. The prefix sum can also be used to detect skew in the data.
Parallelism

The function is thread-safe, and meant to be externally parallelized by the caller.

Radix-partitions a relation by its key attribute.

See the module-level documentation for details on the algorithm.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.