pub struct MergeOperator { /* private fields */ }Expand description
Merge operator for MERGE clause.
Tries to match a node with the given labels and properties. If found, returns the existing node. If not found, creates a new node.
When an input operator is provided (chained MERGE), input rows are passed through with the merged node ID appended as an additional column.
Implementations§
Source§impl MergeOperator
impl MergeOperator
Sourcepub fn new(
store: Arc<dyn GraphStoreMut>,
input: Option<Box<dyn Operator>>,
config: MergeConfig,
) -> Self
pub fn new( store: Arc<dyn GraphStoreMut>, input: Option<Box<dyn Operator>>, config: MergeConfig, ) -> Self
Creates a new merge operator.
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 versioned mutations.
Sourcepub fn with_validator(self, validator: Arc<dyn ConstraintValidator>) -> Self
pub fn with_validator(self, validator: Arc<dyn ConstraintValidator>) -> Self
Sets the constraint validator for schema enforcement.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MergeOperator
impl !RefUnwindSafe for MergeOperator
impl Send for MergeOperator
impl Sync for MergeOperator
impl Unpin for MergeOperator
impl UnsafeUnpin for MergeOperator
impl !UnwindSafe for MergeOperator
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