pub struct JoinGraph { /* private fields */ }Implementations§
Source§impl JoinGraph
impl JoinGraph
pub fn new() -> Self
pub fn add_relation( &mut self, name: impl Into<String>, rows: f64, ) -> JoinGraphResult<usize>
pub fn add_relation_with_cost( &mut self, name: impl Into<String>, rows: f64, access_cost: f64, ) -> JoinGraphResult<usize>
pub fn add_edge( &mut self, left_idx: usize, right_idx: usize, selectivity: f64, ) -> JoinGraphResult<()>
pub fn relation_count(&self) -> usize
Sourcepub fn edges_between(&self, s1: u64, s2: u64) -> Vec<&JoinEdge>
pub fn edges_between(&self, s1: u64, s2: u64) -> Vec<&JoinEdge>
All edges connecting a left subset to a right subset of the
graph. An edge is “between” (s1, s2) when one endpoint is in
s1 and the other is in s2.
pub fn full_set(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JoinGraph
impl RefUnwindSafe for JoinGraph
impl Send for JoinGraph
impl Sync for JoinGraph
impl Unpin for JoinGraph
impl UnsafeUnpin for JoinGraph
impl UnwindSafe for JoinGraph
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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