pub struct CreateNodeOperator { /* private fields */ }Expand description
Operator that creates new nodes.
For each input row, creates a new node with the specified labels and properties, then outputs the row with the new node.
Implementations§
Source§impl CreateNodeOperator
impl CreateNodeOperator
Sourcepub fn new(
store: Arc<dyn GraphStoreMut>,
input: Option<Box<dyn Operator>>,
labels: Vec<String>,
properties: Vec<(String, PropertySource)>,
output_schema: Vec<LogicalType>,
output_column: usize,
) -> Self
pub fn new( store: Arc<dyn GraphStoreMut>, input: Option<Box<dyn Operator>>, labels: Vec<String>, properties: Vec<(String, PropertySource)>, output_schema: Vec<LogicalType>, output_column: usize, ) -> Self
Creates a new node creation operator.
§Arguments
store- The graph store to modify.input- Optional input operator (None for standalone CREATE).labels- Labels to assign to created nodes.properties- Properties to set on created nodes.output_schema- Schema of the output.output_column- Column index where the created node ID goes.
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 versioning.
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.
Sourcepub fn with_write_tracker(self, tracker: SharedWriteTracker) -> Self
pub fn with_write_tracker(self, tracker: SharedWriteTracker) -> Self
Sets the write tracker for conflict detection.
Trait Implementations§
Source§impl Operator for CreateNodeOperator
impl Operator for CreateNodeOperator
Auto Trait Implementations§
impl Freeze for CreateNodeOperator
impl !RefUnwindSafe for CreateNodeOperator
impl Send for CreateNodeOperator
impl Sync for CreateNodeOperator
impl Unpin for CreateNodeOperator
impl UnsafeUnpin for CreateNodeOperator
impl !UnwindSafe for CreateNodeOperator
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