pub struct AddLabelOperator { /* private fields */ }Expand description
Operator that adds labels to nodes.
Implementations§
Source§impl AddLabelOperator
impl AddLabelOperator
Sourcepub fn new(
store: Arc<dyn GraphStoreMut>,
input: Box<dyn Operator>,
node_column: usize,
labels: Vec<String>,
output_schema: Vec<LogicalType>,
) -> Self
pub fn new( store: Arc<dyn GraphStoreMut>, input: Box<dyn Operator>, node_column: usize, labels: Vec<String>, output_schema: Vec<LogicalType>, ) -> Self
Creates a new add label 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 label mutations.
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§
Auto Trait Implementations§
impl Freeze for AddLabelOperator
impl !RefUnwindSafe for AddLabelOperator
impl Send for AddLabelOperator
impl Sync for AddLabelOperator
impl Unpin for AddLabelOperator
impl UnsafeUnpin for AddLabelOperator
impl !UnwindSafe for AddLabelOperator
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