#[repr(i32)]pub enum AggregationPhase {
Unspecified = 0,
InitialToIntermediate = 1,
IntermediateToIntermediate = 2,
InitialToResult = 3,
IntermediateToResult = 4,
}
Expand description
Describes which part of an aggregation or window function to perform within the context of distributed algorithms.
Variants§
Unspecified = 0
Implies INTERMEDIATE_TO_RESULT
.
InitialToIntermediate = 1
Specifies that the function should be run only up to the point of generating an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.
IntermediateToIntermediate = 2
Specifies that the inputs of the aggregate or window function are the intermediate values of the function, and that the output should also be an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.
InitialToResult = 3
A complete invocation: the function should aggregate the given set of inputs to yield a single return value. This style must be used for aggregate or window functions that are not decomposable.
IntermediateToResult = 4
Specifies that the inputs of the aggregate or window function are the intermediate values of the function, generated previously using INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls. This call should combine the intermediate values to yield the final return value.
Implementations§
Source§impl AggregationPhase
impl AggregationPhase
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for AggregationPhase
impl Clone for AggregationPhase
Source§fn clone(&self) -> AggregationPhase
fn clone(&self) -> AggregationPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more