Enum dataflow_types::plan::reduce::ReducePlan[][src]

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)

Tuple Fields

Plan for computing only accumulable aggregations.

Hierarchical(HierarchicalPlan)

Tuple Fields

Plan for computing only hierarchical aggregations.

Basic(BasicPlan)

Tuple Fields

Plan for computing only basic aggregations.

Collation(CollationPlan)

Tuple Fields

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

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

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

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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