#[non_exhaustive]pub enum MetalOp {
Sort {
keys: Vec<SortKey>,
fetch: Option<usize>,
},
Aggregate {
keys: Vec<usize>,
aggs: Vec<AggSpec>,
},
Filter {
predicate: String,
projection: Option<Vec<usize>>,
},
Join {
how: JoinHow,
left_keys: Vec<usize>,
right_keys: Vec<usize>,
projection: Vec<usize>,
left_columns: usize,
},
}Expand description
What a MetalExec computes, in terms of its input’s column indices.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sort
A sort (fetch: under a LIMIT).
Aggregate
A GROUP BY over column keys (no aggregates: DISTINCT).
Fields
Filter
A filter, with the projection DataFusion’s FilterExec carried.
Fields
Join
An equi-join over column keys (DataFusion’s HashJoinExec), both inputs collected. The
output is DataFusion’s: the left input’s columns, then the right input’s, through
projection.
Trait Implementations§
impl StructuralPartialEq for MetalOp
Auto Trait Implementations§
impl Freeze for MetalOp
impl RefUnwindSafe for MetalOp
impl Send for MetalOp
impl Sync for MetalOp
impl Unpin for MetalOp
impl UnsafeUnpin for MetalOp
impl UnwindSafe for MetalOp
Blanket Implementations§
impl<T> Allocation for T
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
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,
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