pub enum LogicalPlan {
Show 13 variants
DataFrameScan {
df: DataFrame,
},
CsvScan {
path: PathBuf,
predicate: Option<Expr>,
projection: Option<Vec<String>>,
},
ParquetScan {
path: PathBuf,
predicate: Option<Expr>,
projection: Option<Vec<String>>,
},
Projection {
input: Box<LogicalPlan>,
exprs: Vec<Expr>,
kind: ProjectionKind,
},
Filter {
input: Box<LogicalPlan>,
predicate: Expr,
},
Aggregate {
input: Box<LogicalPlan>,
group_by: Vec<Expr>,
aggs: Vec<Expr>,
},
Join {
left: Box<LogicalPlan>,
right: Box<LogicalPlan>,
keys: JoinKeys,
how: JoinType,
},
Sort {
input: Box<LogicalPlan>,
options: SortOptions,
},
Slice {
input: Box<LogicalPlan>,
offset: usize,
len: usize,
from_end: bool,
},
Unique {
input: Box<LogicalPlan>,
subset: Option<Vec<String>>,
},
FillNull {
input: Box<LogicalPlan>,
fill: FillNull,
},
DropNulls {
input: Box<LogicalPlan>,
subset: Option<Vec<String>>,
},
NullCount {
input: Box<LogicalPlan>,
},
}Expand description
Logical plan nodes and projection kinds.
Logical query plan nodes for LazyFrame.
Variants§
DataFrameScan
Scan an in-memory DataFrame.
CsvScan
Scan a CSV file (predicate/projection may be pushed down).
ParquetScan
Scan a Parquet file (predicate/projection may be pushed down).
Projection
Projection node (select or with_columns).
Filter
Filter node.
Aggregate
Aggregate node (group keys and aggregations).
Join
Join two inputs.
Sort
Sort input rows.
Slice
Slice rows (used for head/tail).
Unique
Remove duplicate rows.
FillNull
Fill nulls using a scalar or strategy.
DropNulls
Drop rows containing nulls.
NullCount
Count nulls per column.
Fields
§
input: Box<LogicalPlan>Implementations§
Trait Implementations§
Source§impl Clone for LogicalPlan
impl Clone for LogicalPlan
Source§fn clone(&self) -> LogicalPlan
fn clone(&self) -> LogicalPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogicalPlan
impl !RefUnwindSafe for LogicalPlan
impl Send for LogicalPlan
impl Sync for LogicalPlan
impl Unpin for LogicalPlan
impl !UnwindSafe for LogicalPlan
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