pub struct ProjectOperator { /* private fields */ }Expand description
A project operator that selects and transforms columns.
Implementations§
Source§impl ProjectOperator
impl ProjectOperator
Sourcepub fn new(
child: Box<dyn Operator>,
projections: Vec<ProjectExpr>,
output_types: Vec<LogicalType>,
) -> Self
pub fn new( child: Box<dyn Operator>, projections: Vec<ProjectExpr>, output_types: Vec<LogicalType>, ) -> Self
Creates a new project operator.
§Panics
Panics if projections and output_types have different lengths.
Sourcepub fn with_store(
child: Box<dyn Operator>,
projections: Vec<ProjectExpr>,
output_types: Vec<LogicalType>,
store: Arc<dyn GraphStoreSearch>,
) -> Self
pub fn with_store( child: Box<dyn Operator>, projections: Vec<ProjectExpr>, output_types: Vec<LogicalType>, store: Arc<dyn GraphStoreSearch>, ) -> Self
Creates a new project operator with store access for property lookups.
§Panics
Panics if projections and output_types have different lengths.
Sourcepub fn with_transaction_context(
self,
epoch: EpochId,
transaction_id: Option<TransactionId>,
) -> Self
pub fn with_transaction_context( self, epoch: EpochId, transaction_id: Option<TransactionId>, ) -> Self
Sets the transaction context for MVCC-aware property lookups.
Sourcepub fn with_session_context(self, context: SessionContext) -> Self
pub fn with_session_context(self, context: SessionContext) -> Self
Sets the session context for introspection functions.
Sourcepub fn into_parts(
self,
) -> (Box<dyn Operator>, Vec<ProjectExpr>, Vec<LogicalType>)
pub fn into_parts( self, ) -> (Box<dyn Operator>, Vec<ProjectExpr>, Vec<LogicalType>)
Decomposes this operator into its child and projections for push-based conversion.
Sourcepub fn select_columns(
child: Box<dyn Operator>,
columns: Vec<usize>,
types: Vec<LogicalType>,
) -> Self
pub fn select_columns( child: Box<dyn Operator>, columns: Vec<usize>, types: Vec<LogicalType>, ) -> Self
Creates a project operator that selects specific columns.
Trait Implementations§
Source§impl Operator for ProjectOperator
impl Operator for ProjectOperator
Source§fn next(&mut self) -> OperatorResult
fn next(&mut self) -> OperatorResult
Pulls the next batch of data. Returns
None when exhausted. Read moreAuto Trait Implementations§
impl Freeze for ProjectOperator
impl !RefUnwindSafe for ProjectOperator
impl Send for ProjectOperator
impl Sync for ProjectOperator
impl Unpin for ProjectOperator
impl UnsafeUnpin for ProjectOperator
impl !UnwindSafe for ProjectOperator
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> 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