pub enum Aggregator {
Count,
Sum,
Min,
Max,
Avg,
}Expand description
SQL/SPARQL aggregator vocabulary supported in rule bodies.
Mirrors the subset called out in the extension deliverable
(the rule validation specification):
MIN, MAX, SUM, COUNT, AVG. SPARQL’s SAMPLE and
GROUP_CONCAT are not in scope for extension — they map onto
SPARQL’s Group operator rather than a Datalog rule body.
Variants§
Count
COUNT(?expr) — number of distinct ?expr values that
appear in the inner result set.
Sum
SUM(?expr) — numeric sum of ?expr values.
Min
MIN(?expr) — minimum ?expr value under SPARQL’s
ordering (numeric / lexicographic per term kind).
Max
MAX(?expr) — maximum ?expr value under the same
ordering as Self::Min.
Avg
AVG(?expr) — numeric mean of ?expr values. Undefined
for an empty input.
Implementations§
Trait Implementations§
Source§impl Clone for Aggregator
impl Clone for Aggregator
impl Copy for Aggregator
Source§impl Debug for Aggregator
impl Debug for Aggregator
impl Eq for Aggregator
Source§impl Hash for Aggregator
impl Hash for Aggregator
Source§impl Ord for Aggregator
impl Ord for Aggregator
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Aggregator
impl PartialEq for Aggregator
Source§impl PartialOrd for Aggregator
impl PartialOrd for Aggregator
impl StructuralPartialEq for Aggregator
Auto Trait Implementations§
impl Freeze for Aggregator
impl RefUnwindSafe for Aggregator
impl Send for Aggregator
impl Sync for Aggregator
impl Unpin for Aggregator
impl UnsafeUnpin for Aggregator
impl UnwindSafe for Aggregator
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