pub struct NumericAggregationUdf { /* private fields */ }Expand description
A user-defined numeric aggregation. The aggregation builder controls grouping/windowing.
Supported Rust entrypoints accept grouped value vectors, optionally with leading sample timestamps,
and return either one numeric value or timestamped numeric point(s), e.g.
fn rms(values: Vec<f64>) -> f64,
fn energy(timestamp_ns: Vec<i64>, values: Vec<f64>) -> f64,
fn first(timestamp_ns: Vec<i64>, values: Vec<f64>) -> (i64, f64), or
fn passthrough(timestamp_ns: Vec<i64>, values: Vec<f64>) -> Vec<(i64, f64)>.
Implementations§
Source§impl NumericAggregationUdf
impl NumericAggregationUdf
Sourcepub fn builder() -> Builder<SourceStage>
pub fn builder() -> Builder<SourceStage>
Returns a new builder.
Trait Implementations§
Source§impl Clone for NumericAggregationUdf
impl Clone for NumericAggregationUdf
Source§fn clone(&self) -> NumericAggregationUdf
fn clone(&self) -> NumericAggregationUdf
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumericAggregationUdf
impl Debug for NumericAggregationUdf
Source§impl<'de> Deserialize<'de> for NumericAggregationUdf
impl<'de> Deserialize<'de> for NumericAggregationUdf
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NumericAggregationUdf> for Builder<Complete>
impl From<NumericAggregationUdf> for Builder<Complete>
Source§fn from(v: NumericAggregationUdf) -> Self
fn from(v: NumericAggregationUdf) -> Self
Converts to this type from the input type.
Source§impl Hash for NumericAggregationUdf
impl Hash for NumericAggregationUdf
Source§impl Ord for NumericAggregationUdf
impl Ord for NumericAggregationUdf
Source§fn cmp(&self, other: &NumericAggregationUdf) -> Ordering
fn cmp(&self, other: &NumericAggregationUdf) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NumericAggregationUdf
impl PartialEq for NumericAggregationUdf
Source§fn eq(&self, other: &NumericAggregationUdf) -> bool
fn eq(&self, other: &NumericAggregationUdf) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NumericAggregationUdf
impl PartialOrd for NumericAggregationUdf
Source§impl Serialize for NumericAggregationUdf
impl Serialize for NumericAggregationUdf
impl Eq for NumericAggregationUdf
impl StructuralPartialEq for NumericAggregationUdf
Auto Trait Implementations§
impl Freeze for NumericAggregationUdf
impl RefUnwindSafe for NumericAggregationUdf
impl Send for NumericAggregationUdf
impl Sync for NumericAggregationUdf
impl Unpin for NumericAggregationUdf
impl UnsafeUnpin for NumericAggregationUdf
impl UnwindSafe for NumericAggregationUdf
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request