pub struct ContinuousAggregateDef {
pub database_id: u64,
pub name: String,
pub source: String,
pub bucket_interval: String,
pub bucket_interval_ms: i64,
pub group_by: Vec<String>,
pub aggregates: Vec<AggregateExpr>,
pub refresh_policy: RefreshPolicy,
pub retention_period_ms: u64,
pub stale: bool,
}Expand description
Definition of a continuous aggregate.
Map-encoded so fields (e.g. database_id) can be added with
#[msgpack(default)] and older persisted definitions still decode
without a migration.
Fields§
§database_id: u64Owning database. Scopes the Data-Plane manager’s per-name maps and catalog keys so an aggregate named identically in two databases never collides or materializes against the wrong database’s storage.
#[msgpack(default)]: definitions persisted before database scoping
decode with 0 (DatabaseId::DEFAULT) — the database those legacy
rows lived in — so no migration is required.
name: StringName of this aggregate (e.g., “metrics_1m”).
source: StringSource collection or aggregate to read from.
bucket_interval: StringTime bucket interval string (e.g., “1m”, “1h”, “1d”).
bucket_interval_ms: i64Bucket interval in milliseconds (computed from bucket_interval).
group_by: Vec<String>Columns to GROUP BY (tag/symbol columns).
aggregates: Vec<AggregateExpr>Aggregate expressions to compute.
refresh_policy: RefreshPolicyWhen to refresh.
retention_period_ms: u64Retention period in milliseconds (0 = infinite, independent of source).
stale: boolWhether this aggregate is currently stale (schema change invalidation).
Trait Implementations§
Source§impl Clone for ContinuousAggregateDef
impl Clone for ContinuousAggregateDef
Source§fn clone(&self) -> ContinuousAggregateDef
fn clone(&self) -> ContinuousAggregateDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContinuousAggregateDef
impl Debug for ContinuousAggregateDef
Source§impl<'de> Deserialize<'de> for ContinuousAggregateDef
impl<'de> Deserialize<'de> for ContinuousAggregateDef
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>,
Source§impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for ContinuousAggregateDef
impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for ContinuousAggregateDef
Source§impl PartialEq for ContinuousAggregateDef
impl PartialEq for ContinuousAggregateDef
Source§impl Serialize for ContinuousAggregateDef
impl Serialize for ContinuousAggregateDef
impl StructuralPartialEq for ContinuousAggregateDef
Auto Trait Implementations§
impl Freeze for ContinuousAggregateDef
impl RefUnwindSafe for ContinuousAggregateDef
impl Send for ContinuousAggregateDef
impl Sync for ContinuousAggregateDef
impl Unpin for ContinuousAggregateDef
impl UnsafeUnpin for ContinuousAggregateDef
impl UnwindSafe for ContinuousAggregateDef
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromMessagePackOwned for Twhere
T: for<'a> FromMessagePack<'a>,
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.