pub struct VariableLengthExpandOperator { /* private fields */ }Expand description
An expand operator that handles variable-length path patterns like *1..3.
For each input row containing a source node, this operator produces output rows for each neighbor reachable within the hop range.
Implementations§
Source§impl VariableLengthExpandOperator
impl VariableLengthExpandOperator
Sourcepub fn new(
store: Arc<LpgStore>,
input: Box<dyn Operator>,
source_column: usize,
direction: Direction,
edge_type: Option<String>,
min_hops: u32,
max_hops: u32,
) -> Self
pub fn new( store: Arc<LpgStore>, input: Box<dyn Operator>, source_column: usize, direction: Direction, edge_type: Option<String>, min_hops: u32, max_hops: u32, ) -> Self
Creates a new variable-length expand operator.
Sourcepub fn with_path_length_output(self) -> Self
pub fn with_path_length_output(self) -> Self
Enables path length output as an additional column.
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariableLengthExpandOperator
impl !RefUnwindSafe for VariableLengthExpandOperator
impl Send for VariableLengthExpandOperator
impl Sync for VariableLengthExpandOperator
impl Unpin for VariableLengthExpandOperator
impl !UnwindSafe for VariableLengthExpandOperator
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