pub struct HorizontalAggregateOperator { /* private fields */ }Expand description
Per-row aggregation over a list-valued column.
For each input row:
- Reads a
Value::Listfromlist_column_idx(entity IDs from a path) - For each entity ID, looks up
propertyvia the graph store - Feeds property values through an
AggregateState - Finalizes and appends the result as a new column
Implementations§
Source§impl HorizontalAggregateOperator
impl HorizontalAggregateOperator
Sourcepub fn new(
child: Box<dyn Operator>,
list_column_idx: usize,
entity_kind: EntityKind,
function: AggregateFunction,
property: String,
store: Arc<dyn GraphStore>,
input_column_count: usize,
) -> Self
pub fn new( child: Box<dyn Operator>, list_column_idx: usize, entity_kind: EntityKind, function: AggregateFunction, property: String, store: Arc<dyn GraphStore>, input_column_count: usize, ) -> Self
Creates a new horizontal aggregate operator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HorizontalAggregateOperator
impl !RefUnwindSafe for HorizontalAggregateOperator
impl Send for HorizontalAggregateOperator
impl Sync for HorizontalAggregateOperator
impl Unpin for HorizontalAggregateOperator
impl UnsafeUnpin for HorizontalAggregateOperator
impl !UnwindSafe for HorizontalAggregateOperator
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
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