pub struct UnionOperator { /* private fields */ }Expand description
Union operator that combines results from multiple inputs.
This produces all rows from all inputs, in order. It does not remove duplicates (use DISTINCT after UNION for UNION DISTINCT).
Implementations§
Source§impl UnionOperator
impl UnionOperator
Sourcepub fn new(
inputs: Vec<Box<dyn Operator>>,
output_schema: Vec<LogicalType>,
) -> Self
pub fn new( inputs: Vec<Box<dyn Operator>>, output_schema: Vec<LogicalType>, ) -> Self
Creates a new union operator.
§Arguments
inputs- The input operators to union.output_schema- The schema of the output (should match all inputs).
Sourcepub fn output_schema(&self) -> &[LogicalType]
pub fn output_schema(&self) -> &[LogicalType]
Returns the output schema.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnionOperator
impl !RefUnwindSafe for UnionOperator
impl Send for UnionOperator
impl Sync for UnionOperator
impl Unpin for UnionOperator
impl !UnwindSafe for UnionOperator
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