pub struct UnwindOperator { /* private fields */ }Expand description
Unwind operator that expands a list column into individual rows.
For each input row, if the list column contains N elements, this operator produces N output rows, each with one element from the list.
Implementations§
Source§impl UnwindOperator
impl UnwindOperator
Sourcepub fn new(
child: Box<dyn Operator>,
list_col_idx: usize,
variable_name: String,
output_schema: Vec<LogicalType>,
) -> Self
pub fn new( child: Box<dyn Operator>, list_col_idx: usize, variable_name: String, output_schema: Vec<LogicalType>, ) -> Self
Creates a new unwind operator.
§Arguments
child- The input operatorlist_col_idx- The column index containing the list to unwindvariable_name- The name of the new variableoutput_schema- The schema for output (should include the new column type)
Sourcepub fn variable_name(&self) -> &str
pub fn variable_name(&self) -> &str
Returns the variable name for the unwound elements.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnwindOperator
impl !RefUnwindSafe for UnwindOperator
impl Send for UnwindOperator
impl Sync for UnwindOperator
impl Unpin for UnwindOperator
impl !UnwindSafe for UnwindOperator
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