Enum polars_plan::logical_plan::FunctionNode
source · pub enum FunctionNode {
Show 13 variants
OpaquePython {
function: PythonFunction,
schema: Option<SchemaRef>,
predicate_pd: bool,
projection_pd: bool,
streamable: bool,
validate_output: bool,
},
Opaque {
function: Arc<dyn DataFrameUdf>,
schema: Option<Arc<dyn UdfSchema>>,
predicate_pd: bool,
projection_pd: bool,
streamable: bool,
fmt_str: &'static str,
},
Count {
paths: Arc<[PathBuf]>,
scan_type: FileScan,
alias: Option<Arc<str>>,
},
Pipeline {
function: Arc<dyn DataFrameUdfMut>,
schema: SchemaRef,
original: Option<Arc<LogicalPlan>>,
},
Unnest {
columns: Arc<[Arc<str>]>,
},
FastProjection {
columns: Arc<[String]>,
duplicate_check: bool,
},
DropNulls {
subset: Arc<[Arc<str>]>,
},
Rechunk,
MergeSorted {
column: Arc<str>,
},
Rename {
existing: Arc<[String]>,
new: Arc<[String]>,
swapping: bool,
},
Explode {
columns: Arc<[Arc<str>]>,
schema: SchemaRef,
},
Melt {
args: Arc<MeltArgs>,
schema: SchemaRef,
},
RowIndex {
name: Arc<str>,
schema: SchemaRef,
offset: Option<IdxSize>,
},
}
Variants§
OpaquePython
Fields
§
function: PythonFunction
Available on crate feature
python
only.Opaque
Fields
§
function: Arc<dyn DataFrameUdf>
Count
Pipeline
Unnest
FastProjection
DropNulls
Rechunk
MergeSorted
Available on crate feature
merge_sorted
only.Rename
Explode
Melt
RowIndex
Implementations§
source§impl FunctionNode
impl FunctionNode
sourcepub fn is_streamable(&self) -> bool
pub fn is_streamable(&self) -> bool
Whether this function can run on batches of data at a time.
sourcepub fn expands_rows(&self) -> bool
pub fn expands_rows(&self) -> bool
Whether this function will increase the number of rows
pub fn evaluate(&mut self, df: DataFrame) -> PolarsResult<DataFrame>
Trait Implementations§
source§impl Clone for FunctionNode
impl Clone for FunctionNode
source§fn clone(&self) -> FunctionNode
fn clone(&self) -> FunctionNode
Returns a copy 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 moresource§impl Debug for FunctionNode
impl Debug for FunctionNode
source§impl<'de> Deserialize<'de> for FunctionNode
impl<'de> Deserialize<'de> for FunctionNode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for FunctionNode
impl Display for FunctionNode
Auto Trait Implementations§
impl Freeze for FunctionNode
impl !RefUnwindSafe for FunctionNode
impl Send for FunctionNode
impl Sync for FunctionNode
impl Unpin for FunctionNode
impl !UnwindSafe for FunctionNode
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