pub struct CreateEdgeOperator { /* private fields */ }Expand description
Operator that creates new edges.
Implementations§
Source§impl CreateEdgeOperator
impl CreateEdgeOperator
Sourcepub fn new(
store: Arc<LpgStore>,
input: Box<dyn Operator>,
from_column: usize,
to_column: usize,
edge_type: String,
output_schema: Vec<LogicalType>,
) -> Self
pub fn new( store: Arc<LpgStore>, input: Box<dyn Operator>, from_column: usize, to_column: usize, edge_type: String, output_schema: Vec<LogicalType>, ) -> Self
Creates a new edge creation operator.
Use builder methods to set additional options:
with_properties- set edge propertieswith_output_column- output the created edge IDwith_tx_context- set transaction context
Sourcepub fn with_properties(self, properties: Vec<(String, PropertySource)>) -> Self
pub fn with_properties(self, properties: Vec<(String, PropertySource)>) -> Self
Sets the properties to assign to created edges.
Sourcepub fn with_output_column(self, column: usize) -> Self
pub fn with_output_column(self, column: usize) -> Self
Sets the output column for the created edge ID.
Sourcepub fn with_tx_context(self, epoch: EpochId, tx_id: Option<TxId>) -> Self
pub fn with_tx_context(self, epoch: EpochId, tx_id: Option<TxId>) -> Self
Sets the transaction context for MVCC versioning.
Trait Implementations§
Source§impl Operator for CreateEdgeOperator
impl Operator for CreateEdgeOperator
Auto Trait Implementations§
impl Freeze for CreateEdgeOperator
impl !RefUnwindSafe for CreateEdgeOperator
impl Send for CreateEdgeOperator
impl Sync for CreateEdgeOperator
impl Unpin for CreateEdgeOperator
impl !UnwindSafe for CreateEdgeOperator
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