pub struct ExpandOperator { /* private fields */ }Expand description
Expand operator: -[:KNOWS]->
Implementations§
Source§impl ExpandOperator
impl ExpandOperator
Sourcepub fn new(
input: OperatorBox,
source_var: String,
target_var: String,
edge_var: Option<String>,
edge_types: Vec<String>,
direction: Direction,
) -> Self
pub fn new( input: OperatorBox, source_var: String, target_var: String, edge_var: Option<String>, edge_types: Vec<String>, direction: Direction, ) -> Self
Create a new expand operator
Sourcepub fn with_path_variable(self, var: String) -> Self
pub fn with_path_variable(self, var: String) -> Self
Set path variable for named path materialization (CY-04)
Sourcepub fn with_target_labels(self, labels: Vec<Label>) -> Self
pub fn with_target_labels(self, labels: Vec<Label>) -> Self
Set target node labels to filter during expansion
Trait Implementations§
Source§impl PhysicalOperator for ExpandOperator
impl PhysicalOperator for ExpandOperator
Source§fn next(&mut self, store: &GraphStore) -> ExecutionResult<Option<Record>>
fn next(&mut self, store: &GraphStore) -> ExecutionResult<Option<Record>>
Get the next record from this operator (read-only operations)
Source§fn next_batch(
&mut self,
store: &GraphStore,
batch_size: usize,
) -> ExecutionResult<Option<RecordBatch>>
fn next_batch( &mut self, store: &GraphStore, batch_size: usize, ) -> ExecutionResult<Option<RecordBatch>>
Get the next batch of records (Vectorized Execution)
Defaults to accumulating records from next()
Source§fn describe(&self) -> OperatorDescription
fn describe(&self) -> OperatorDescription
Describe this operator for EXPLAIN output
Returns (operator_name, details, children)
Source§fn next_batch_mut(
&mut self,
store: &mut GraphStore,
tenant_id: &str,
batch_size: usize,
) -> ExecutionResult<Option<RecordBatch>>
fn next_batch_mut( &mut self, store: &mut GraphStore, tenant_id: &str, batch_size: usize, ) -> ExecutionResult<Option<RecordBatch>>
Get the next batch of records for mutating operations
Source§fn next_mut(
&mut self,
store: &mut GraphStore,
_tenant_id: &str,
) -> ExecutionResult<Option<Record>>
fn next_mut( &mut self, store: &mut GraphStore, _tenant_id: &str, ) -> ExecutionResult<Option<Record>>
Get the next record from this operator (write operations that mutate the store)
Source§fn is_mutating(&self) -> bool
fn is_mutating(&self) -> bool
Returns true if this operator mutates the graph store
Auto Trait Implementations§
impl Freeze for ExpandOperator
impl !RefUnwindSafe for ExpandOperator
impl Send for ExpandOperator
impl !Sync for ExpandOperator
impl Unpin for ExpandOperator
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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