#[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 moreSource§impl Debug for AggregationPhase
impl Debug for AggregationPhase
Source§impl Default for AggregationPhase
impl Default for AggregationPhase
Source§fn default() -> AggregationPhase
fn default() -> AggregationPhase
§impl<'de> Deserialize<'de> for AggregationPhase
impl<'de> Deserialize<'de> for AggregationPhase
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl From<AggregationPhase> for i32
impl From<AggregationPhase> for i32
Source§fn from(value: AggregationPhase) -> i32
fn from(value: AggregationPhase) -> i32
Source§impl Hash for AggregationPhase
impl Hash for AggregationPhase
Source§impl Ord for AggregationPhase
impl Ord for AggregationPhase
Source§fn cmp(&self, other: &AggregationPhase) -> Ordering
fn cmp(&self, other: &AggregationPhase) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AggregationPhase
impl PartialEq for AggregationPhase
Source§impl PartialOrd for AggregationPhase
impl PartialOrd for AggregationPhase
§impl Serialize for AggregationPhase
impl Serialize for AggregationPhase
Source§impl TryFrom<i32> for AggregationPhase
impl TryFrom<i32> for AggregationPhase
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<AggregationPhase, UnknownEnumValue>
fn try_from(value: i32) -> Result<AggregationPhase, UnknownEnumValue>
impl Copy for AggregationPhase
impl Eq for AggregationPhase
impl StructuralPartialEq for AggregationPhase
Auto Trait Implementations§
impl Freeze for AggregationPhase
impl RefUnwindSafe for AggregationPhase
impl Send for AggregationPhase
impl Sync for AggregationPhase
impl Unpin for AggregationPhase
impl UnwindSafe for AggregationPhase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.