pub struct AggregateKeyspace {
pub pipeline_id: String,
pub aggregate_name: String,
}Expand description
Chitchat key builder for aggregate namespacing.
Fields§
§pipeline_id: StringPipeline identifier.
aggregate_name: StringAggregate name.
Implementations§
Source§impl AggregateKeyspace
impl AggregateKeyspace
Sourcepub fn new(pipeline_id: String, aggregate_name: String) -> Self
pub fn new(pipeline_id: String, aggregate_name: String) -> Self
Create a new aggregate keyspace.
Sourcepub fn global_key(&self) -> String
pub fn global_key(&self) -> String
Build a chitchat key for a global aggregate.
Sourcepub fn window_key(&self, window_start: i64, window_end: i64) -> String
pub fn window_key(&self, window_start: i64, window_end: i64) -> String
Build a chitchat key for a windowed aggregate.
Sourcepub fn parse_scope(key: &str) -> Option<AggregateScope>
pub fn parse_scope(key: &str) -> Option<AggregateScope>
Parse a chitchat key to extract its scope.
Trait Implementations§
Source§impl Clone for AggregateKeyspace
impl Clone for AggregateKeyspace
Source§fn clone(&self) -> AggregateKeyspace
fn clone(&self) -> AggregateKeyspace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AggregateKeyspace
impl RefUnwindSafe for AggregateKeyspace
impl Send for AggregateKeyspace
impl Sync for AggregateKeyspace
impl Unpin for AggregateKeyspace
impl UnsafeUnpin for AggregateKeyspace
impl UnwindSafe for AggregateKeyspace
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.