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<LpgStore>,
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<LpgStore>, 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_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 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 !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