pub struct IRBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> IRBuilder<'a>
impl<'a> IRBuilder<'a>
pub fn new( root: Node, expr_arena: &'a mut Arena<AExpr>, lp_arena: &'a mut Arena<IR>, ) -> Self
pub fn from_lp( lp: IR, expr_arena: &'a mut Arena<AExpr>, lp_arena: &'a mut Arena<IR>, ) -> Self
pub fn add_alp(self, lp: IR) -> Self
pub fn project(self, exprs: Vec<ExprIR>, options: ProjectionOptions) -> Self
pub fn project_simple_nodes<I, N>(self, nodes: I) -> PolarsResult<Self>
pub fn project_simple<I, S>(self, names: I) -> PolarsResult<Self>
pub fn node(self) -> Node
pub fn build(self) -> IR
pub fn schema(&'a self) -> Cow<'a, SchemaRef>
pub fn with_columns( self, exprs: Vec<ExprIR>, options: ProjectionOptions, ) -> Self
pub fn with_columns_simple<I, J: Into<Node>>(
self,
exprs: I,
options: ProjectionOptions,
) -> Selfwhere
I: IntoIterator<Item = J>,
pub fn explode(self, columns: Arc<[PlSmallStr]>) -> Self
pub fn group_by( self, keys: Vec<ExprIR>, aggs: Vec<ExprIR>, apply: Option<Arc<dyn DataFrameUdf>>, maintain_order: bool, options: Arc<GroupbyOptions>, ) -> Self
pub fn join( self, other: Node, left_on: Vec<ExprIR>, right_on: Vec<ExprIR>, options: Arc<JoinOptions>, ) -> Self
pub fn unpivot(self, args: Arc<UnpivotArgsIR>) -> Self
Available on crate feature
pivot
only.pub fn row_index(self, name: PlSmallStr, offset: Option<IdxSize>) -> Self
Auto Trait Implementations§
impl<'a> Freeze for IRBuilder<'a>
impl<'a> !RefUnwindSafe for IRBuilder<'a>
impl<'a> Send for IRBuilder<'a>
impl<'a> Sync for IRBuilder<'a>
impl<'a> Unpin for IRBuilder<'a>
impl<'a> !UnwindSafe for IRBuilder<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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