pub enum ReducePlan {
    Distinct,
    DistinctNegated,
    Accumulable(AccumulablePlan),
    Hierarchical(HierarchicalPlan),
    Basic(BasicPlan),
    Collation(CollationPlan),
}
Expand description

A ReducePlan provides a concise description for how we will execute a given reduce expression.

The provided reduce expression can have no aggregations, in which case its just a Distinct and otherwise it’s composed of a combination of accumulable, hierarchical and basic aggregations.

We want to try to centralize as much decision making about the shape / general computation of the rendered dataflow graph in this plan, and then make actually rendering the graph be as simple (and compiler verifiable) as possible.

Variants§

§

Distinct

Plan for not computing any aggregations, just determining the set of distinct keys.

§

DistinctNegated

Plan for not computing any aggregations, just determining the set of distinct keys. A specialization of ReducePlan::Distinct maintaining rows not in the output.

§

Accumulable(AccumulablePlan)

Plan for computing only accumulable aggregations.

§

Hierarchical(HierarchicalPlan)

Plan for computing only hierarchical aggregations.

§

Basic(BasicPlan)

Plan for computing only basic aggregations.

§

Collation(CollationPlan)

Plan for computing a mix of different kinds of aggregations. We need to do extra work here to reassemble results back in the requested order.

Implementations§

Generate a plan for computing the supplied aggregations.

The resulting plan summarizes what the dataflow to be created and how the aggregations will be executed.

Generate a plan for computing the specified type of aggregations.

This function assumes that all of the supplied aggregates are actually of the correct reduction type, and are a subsequence of the total list of requested aggregations.

Reports all keys of produced arrangements.

This is likely either an empty vector, for no arrangement, or a singleton vector containing the list of expressions that key a single arrangement.

Trait Implementations§

To avoid stack overflow, this limits the arbitrarily-generated test ReducePlans to involve at most 8 aggregations.

To have better coverage of realistic expected group sizes, the expected group size has a logarithmic distribution.

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
The type of Strategy used to generate values of type Self.
Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Convert a Self into a Proto value.
Consume and convert a Proto back into a Self value. Read more
Serialize this value into the given Serde serializer. 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
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Converts to this type from a reference to the input type.
Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Wrap the input message T in a tonic::Request
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
Upcasts this ProgressEventTimestamp to Any. Read more
Returns the name of the concrete type of this object. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more