pub struct SetPropertyOperator { /* private fields */ }Expand description
Operator that sets properties on nodes or edges.
This operator reads node/edge IDs from a column and sets the specified properties on each entity.
Implementations§
Source§impl SetPropertyOperator
impl SetPropertyOperator
Sourcepub fn new_for_node(
store: Arc<dyn GraphStoreMut>,
input: Box<dyn Operator>,
node_column: usize,
properties: Vec<(String, PropertySource)>,
output_schema: Vec<LogicalType>,
) -> Self
pub fn new_for_node( store: Arc<dyn GraphStoreMut>, input: Box<dyn Operator>, node_column: usize, properties: Vec<(String, PropertySource)>, output_schema: Vec<LogicalType>, ) -> Self
Creates a new set property operator for nodes.
Sourcepub fn new_for_edge(
store: Arc<dyn GraphStoreMut>,
input: Box<dyn Operator>,
edge_column: usize,
properties: Vec<(String, PropertySource)>,
output_schema: Vec<LogicalType>,
) -> Self
pub fn new_for_edge( store: Arc<dyn GraphStoreMut>, input: Box<dyn Operator>, edge_column: usize, properties: Vec<(String, PropertySource)>, output_schema: Vec<LogicalType>, ) -> Self
Creates a new set property operator for edges.
Sourcepub fn with_replace(self, replace: bool) -> Self
pub fn with_replace(self, replace: bool) -> Self
Sets whether this operator replaces all properties (for map assignment).
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_labels(self, labels: Vec<String>) -> Self
pub fn with_labels(self, labels: Vec<String>) -> Self
Sets the entity labels (for node constraint validation).
Sourcepub fn with_edge_type(self, edge_type: String) -> Self
pub fn with_edge_type(self, edge_type: String) -> Self
Sets the edge type name (for edge constraint validation).
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 property mutations.
When a transaction ID is provided, property changes are recorded in an undo log so they can be restored on rollback.
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 SetPropertyOperator
impl Operator for SetPropertyOperator
Auto Trait Implementations§
impl Freeze for SetPropertyOperator
impl !RefUnwindSafe for SetPropertyOperator
impl Send for SetPropertyOperator
impl Sync for SetPropertyOperator
impl Unpin for SetPropertyOperator
impl UnsafeUnpin for SetPropertyOperator
impl !UnwindSafe for SetPropertyOperator
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