pub struct FederationPlan { /* private fields */ }Expand description
How to run one query over several sources and merge their rows: see the module docs.
Implementations§
Source§impl FederationPlan
impl FederationPlan
Sourcepub fn new(query: &str, disjoint: bool) -> Result<FederationPlan, SparqlError>
pub fn new(query: &str, disjoint: bool) -> Result<FederationPlan, SparqlError>
Plan query. disjoint says no triple is stored in two sources, which
lets COUNT and SUM be added up.
Sourcepub fn dedup_rows(&self) -> bool
pub fn dedup_rows(&self) -> bool
Whether equal rows from different sources are one row. An aggregate’s rows are not: two sources can each count 5.
Sourcepub fn source_query(&self, query: &str) -> Result<String, SparqlError>
pub fn source_query(&self, query: &str) -> Result<String, SparqlError>
The query each source should run for the merge to give the right rows.
Trait Implementations§
Source§impl Clone for FederationPlan
impl Clone for FederationPlan
Source§fn clone(&self) -> FederationPlan
fn clone(&self) -> FederationPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Forget for FederationPlan
impl Freeze for FederationPlan
impl Move for FederationPlan
impl RefUnwindSafe for FederationPlan
impl Send for FederationPlan
impl Sync for FederationPlan
impl Unpin for FederationPlan
impl UnsafeUnpin for FederationPlan
impl UnwindSafe for FederationPlan
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