Enum polars_lazy::prelude::DslPlan
pub enum DslPlan {
Show 18 variants
PythonScan {
options: PythonOptions,
},
Filter {
input: Arc<DslPlan>,
predicate: Expr,
},
Cache {
input: Arc<DslPlan>,
id: usize,
cache_hits: u32,
},
Scan {
paths: Arc<[PathBuf]>,
file_info: Option<FileInfo>,
predicate: Option<Expr>,
file_options: FileScanOptions,
scan_type: FileScan,
},
DataFrameScan {
df: Arc<DataFrame>,
schema: Arc<Schema>,
output_schema: Option<Arc<Schema>>,
projection: Option<Arc<Vec<String>>>,
selection: Option<Expr>,
},
Select {
expr: Vec<Expr>,
input: Arc<DslPlan>,
options: ProjectionOptions,
},
GroupBy {
input: Arc<DslPlan>,
keys: Vec<Expr>,
aggs: Vec<Expr>,
apply: Option<(Arc<dyn DataFrameUdf>, Arc<Schema>)>,
maintain_order: bool,
options: Arc<GroupbyOptions>,
},
Join {
input_left: Arc<DslPlan>,
input_right: Arc<DslPlan>,
left_on: Vec<Expr>,
right_on: Vec<Expr>,
options: Arc<JoinOptions>,
},
HStack {
input: Arc<DslPlan>,
exprs: Vec<Expr>,
options: ProjectionOptions,
},
Distinct {
input: Arc<DslPlan>,
options: DistinctOptions,
},
Sort {
input: Arc<DslPlan>,
by_column: Vec<Expr>,
slice: Option<(i64, usize)>,
sort_options: SortMultipleOptions,
},
Slice {
input: Arc<DslPlan>,
offset: i64,
len: u64,
},
MapFunction {
input: Arc<DslPlan>,
function: DslFunction,
},
Union {
inputs: Vec<DslPlan>,
args: UnionArgs,
},
HConcat {
inputs: Vec<DslPlan>,
options: HConcatOptions,
},
ExtContext {
input: Arc<DslPlan>,
contexts: Vec<DslPlan>,
},
Sink {
input: Arc<DslPlan>,
payload: SinkType,
},
IR {
node: Option<Node>,
version: u32,
dsl: Arc<DslPlan>,
},
}
Variants§
PythonScan
Available on crate feature
python
only.Fields
§
options: PythonOptions
Filter
Filter on a boolean mask
Cache
Cache the input at this point in the LP
Scan
DataFrameScan
In memory DataFrame
Fields
Select
Polars’ select
operation, this can mean projection, but also full data access.
GroupBy
Groupby aggregation
Fields
Join
Join operation
Fields
§
options: Arc<JoinOptions>
HStack
Adding columns to the table without a Join
Distinct
Remove duplicates from the table
Sort
Sort the table
Fields
§
sort_options: SortMultipleOptions
Slice
Slice the table
MapFunction
A (User Defined) Function
Union
Vertical concatenation
HConcat
Horizontal concatenation of multiple plans
ExtContext
This allows expressions to access other tables
Sink
IR
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for DslPlan
impl<'de> Deserialize<'de> for DslPlan
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DslPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DslPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for DslPlan
impl Serialize for DslPlan
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !Freeze for DslPlan
impl !RefUnwindSafe for DslPlan
impl Send for DslPlan
impl Sync for DslPlan
impl Unpin for DslPlan
impl !UnwindSafe for DslPlan
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