pub struct AspJoin<'a> { /* private fields */ }Expand description
Binary ASP-Join: 2-hop traversal over a CSR graph.
Implementations§
Source§impl<'a> AspJoin<'a>
impl<'a> AspJoin<'a>
pub fn new(csr: &'a CsrForward) -> Self
Sourcepub fn two_hop(&self, src_slot: u64) -> Result<Vec<u64>>
pub fn two_hop(&self, src_slot: u64) -> Result<Vec<u64>>
Compute 2-hop friends-of-friends for src_slot.
Returns the deduplicated set of fof node slots.
Does NOT exclude direct friends of src_slot — that filtering is
handled separately in the WHERE NOT clause at the planner level.
Sourcepub fn two_hop_factorized(&self, src_slot: u64) -> Result<TwoHopChunk>
pub fn two_hop_factorized(&self, src_slot: u64) -> Result<TwoHopChunk>
Compute 2-hop in factorized form: preserves multiplicity without materializing a flat list.
Returns a FactorizedChunk where:
- Each VectorGroup represents one mid-node with its fof set.
- Multiplicity is preserved per group.
logical_row_count()returns the total count of (mid, fof) pairs.
Auto Trait Implementations§
impl<'a> Freeze for AspJoin<'a>
impl<'a> RefUnwindSafe for AspJoin<'a>
impl<'a> Send for AspJoin<'a>
impl<'a> Sync for AspJoin<'a>
impl<'a> Unpin for AspJoin<'a>
impl<'a> UnsafeUnpin for AspJoin<'a>
impl<'a> UnwindSafe for AspJoin<'a>
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> 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