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<dyn GraphStore>,
input: Box<dyn Operator>,
source_column: usize,
direction: Direction,
edge_types: Vec<String>,
min_hops: u32,
max_hops: u32,
) -> Self
pub fn new( store: Arc<dyn GraphStore>, input: Box<dyn Operator>, source_column: usize, direction: Direction, edge_types: Vec<String>, min_hops: u32, max_hops: u32, ) -> Self
Creates a new variable-length expand operator.
Sourcepub fn with_path_mode(self, mode: PathMode) -> Self
pub fn with_path_mode(self, mode: PathMode) -> Self
Sets the path traversal mode.
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_path_detail_output(self) -> Self
pub fn with_path_detail_output(self) -> Self
Enables full path detail output (node list and edge list columns).
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_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 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 UnsafeUnpin 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
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