pub enum CaptureAgg {
Min(String),
Max(String),
Sum(String),
}Expand description
A capture point extracted from an op template.
Capture points mark result fields that should be extracted from the operation result and stored as named variables for use in subsequent operations or verification.
Formats:
[username]— capture “username” as “username” (single value)[username as u1]— capture “username”, store as “u1” (single value)[(List) field]— capture with type assertion[*]— capture all available fields[@keys]— slurp: collect every row’skeyscolumn into aValue::Jsonarray. Use when the result has multiple rows and the consumer needs all per-row column values as a list (e.g. recall-evaluator’sactual:reads).[@col as values]— slurp with alias. 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_taskscarries 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 Freeze 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