pub enum CaptureAgg {
Min(String),
Max(String),
Sum(String),
}Expand description
Row-set aggregation for a declarative capture: reduce an
array-of-rows body (or addressed sub-array) to one scalar by
folding the named field across rows. Declared with a
:min(field) / :max(field) / :sum(field) suffix on the
capture path. Motivating case: system_views.sstable_tasks
carries several concurrent tasks in MIXED units (a
byte-denominated data compaction plus an ordinal-denominated
index build) — a /0/... capture pins whichever row sorts
first, so a saturated byte task masks the still-running merge;
:min(completion_ratio) reads the least-complete task, which
is the drain’s true state.
Variants§
Min(String)
Numeric minimum of field across rows.
Max(String)
Numeric maximum of field across rows.
Sum(String)
Numeric sum of field across rows.
Trait Implementations§
Source§impl Clone for CaptureAgg
impl Clone for CaptureAgg
Source§impl Debug for CaptureAgg
impl Debug for CaptureAgg
Source§impl<'de> Deserialize<'de> for CaptureAgg
impl<'de> Deserialize<'de> for CaptureAgg
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 PartialEq for CaptureAgg
impl PartialEq for CaptureAgg
Source§impl Serialize for CaptureAgg
impl Serialize for CaptureAgg
impl StructuralPartialEq for CaptureAgg
Auto Trait Implementations§
impl Forget for CaptureAgg
impl Freeze for CaptureAgg
impl Move for CaptureAgg
impl RefUnwindSafe for CaptureAgg
impl Send for CaptureAgg
impl Sync for CaptureAgg
impl Unpin for CaptureAgg
impl UnsafeUnpin for CaptureAgg
impl UnwindSafe for CaptureAgg
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