polars_plan::plans

Struct DslBuilder

Source
pub struct DslBuilder(pub DslPlan);

Tuple Fields§

§0: DslPlan

Implementations§

Source§

impl DslBuilder

Source

pub fn anonymous_scan( function: Arc<dyn AnonymousScan>, schema: Option<SchemaRef>, infer_schema_length: Option<usize>, skip_rows: Option<usize>, n_rows: Option<usize>, name: &'static str, ) -> PolarsResult<Self>

Source

pub fn scan_parquet( sources: ScanSources, n_rows: Option<usize>, cache: bool, parallel: ParallelStrategy, row_index: Option<RowIndex>, rechunk: bool, low_memory: bool, cloud_options: Option<CloudOptions>, use_statistics: bool, schema: Option<SchemaRef>, hive_options: HiveOptions, glob: bool, include_file_paths: Option<PlSmallStr>, allow_missing_columns: bool, ) -> PolarsResult<Self>

Available on crate feature parquet only.
Source

pub fn scan_ipc( sources: ScanSources, options: IpcScanOptions, n_rows: Option<usize>, cache: bool, row_index: Option<RowIndex>, rechunk: bool, cloud_options: Option<CloudOptions>, hive_options: HiveOptions, include_file_paths: Option<PlSmallStr>, ) -> PolarsResult<Self>

Available on crate feature ipc only.
Source

pub fn cache(self) -> Self

Source

pub fn drop(self, to_drop: Vec<Selector>, strict: bool) -> Self

Source

pub fn project(self, exprs: Vec<Expr>, options: ProjectionOptions) -> Self

Source

pub fn fill_null(self, fill_value: Expr) -> Self

Source

pub fn drop_nans(self, subset: Option<Vec<Expr>>) -> Self

Source

pub fn drop_nulls(self, subset: Option<Vec<Expr>>) -> Self

Source

pub fn fill_nan(self, fill_value: Expr) -> Self

Source

pub fn with_columns(self, exprs: Vec<Expr>, options: ProjectionOptions) -> Self

Source

pub fn with_context(self, contexts: Vec<DslPlan>) -> Self

Source

pub fn filter(self, predicate: Expr) -> Self

Apply a filter

Source

pub fn group_by<E: AsRef<[Expr]>>( self, keys: Vec<Expr>, aggs: E, apply: Option<(Arc<dyn DataFrameUdf>, SchemaRef)>, maintain_order: bool, ) -> Self

Source

pub fn build(self) -> DslPlan

Source

pub fn from_existing_df(df: DataFrame) -> Self

Source

pub fn sort( self, by_column: Vec<Expr>, sort_options: SortMultipleOptions, ) -> Self

Source

pub fn explode(self, columns: Vec<Selector>, allow_empty: bool) -> Self

Source

pub fn unpivot(self, args: UnpivotArgsDSL) -> Self

Available on crate feature pivot only.
Source

pub fn row_index(self, name: PlSmallStr, offset: Option<IdxSize>) -> Self

Source

pub fn distinct(self, options: DistinctOptionsDSL) -> Self

Source

pub fn slice(self, offset: i64, len: IdxSize) -> Self

Source

pub fn join( self, other: DslPlan, left_on: Vec<Expr>, right_on: Vec<Expr>, options: Arc<JoinOptions>, ) -> Self

Source

pub fn map_private(self, function: DslFunction) -> Self

Source

pub fn map_python( self, function: PythonFunction, optimizations: AllowedOptimizations, schema: Option<SchemaRef>, validate_output: bool, ) -> Self

Available on crate feature python only.
Source

pub fn map<F>( self, function: F, optimizations: AllowedOptimizations, schema: Option<Arc<dyn UdfSchema>>, name: PlSmallStr, ) -> Self
where F: DataFrameUdf + 'static,

Trait Implementations§

Source§

impl From<DslPlan> for DslBuilder

Source§

fn from(lp: DslPlan) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> Ungil for T
where T: Send,