pub struct ExpandOperator { /* private fields */ }Expand description
An expand operator that traverses edges from source nodes.
For each input row containing a source node, this operator produces output rows for each neighbor connected via matching edges.
Implementations§
Source§impl ExpandOperator
impl ExpandOperator
Sourcepub fn new(
store: Arc<LpgStore>,
input: Box<dyn Operator>,
source_column: usize,
direction: Direction,
edge_type: Option<String>,
) -> Self
pub fn new( store: Arc<LpgStore>, input: Box<dyn Operator>, source_column: usize, direction: Direction, edge_type: Option<String>, ) -> Self
Creates a new expand operator.
Sourcepub fn with_chunk_capacity(self, capacity: usize) -> Self
pub fn with_chunk_capacity(self, capacity: usize) -> Self
Sets the chunk capacity.
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 visibility.
When set, the expand will only traverse visible edges and nodes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExpandOperator
impl !RefUnwindSafe for ExpandOperator
impl Send for ExpandOperator
impl Sync for ExpandOperator
impl Unpin for ExpandOperator
impl !UnwindSafe for ExpandOperator
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