pub struct PullLevel<P: Implementable> {
pub variables: Vec<u32>,
pub plan: Box<P>,
pub pull_variable: u32,
pub pull_attributes: Vec<Aid>,
pub path_attributes: Vec<Aid>,
pub cardinality_many: bool,
}
Expand description
A plan stage for extracting all matching [e a v] tuples for a given set of attributes and an input relation specifying entities.
Fields§
§variables: Vec<u32>
TODO
plan: Box<P>
Plan for the input relation.
pull_variable: u32
Eid variable.
pull_attributes: Vec<Aid>
Attributes to pull for the input entities.
path_attributes: Vec<Aid>
Attribute names to distinguish plans of the same length. Useful to feed into a nested hash-map directly.
cardinality_many: bool
@TODO
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for PullLevel<P>where
P: Deserialize<'de> + Implementable,
impl<'de, P> Deserialize<'de> for PullLevel<P>where
P: Deserialize<'de> + Implementable,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P: Implementable> Implementable for PullLevel<P>
impl<P: Implementable> Implementable for PullLevel<P>
Source§fn dependencies(&self) -> Dependencies
fn dependencies(&self) -> Dependencies
Returns names of any other implementable things that need to
be available before implementing this one. Attributes are not
mentioned explicitley as dependencies.
Source§fn implement<'b, T, I, S>(
&self,
nested: &mut Iterative<'b, S, u64>,
local_arrangements: &HashMap<String, Variable<Iterative<'b, S, u64>, Vec<Value>, isize>>,
context: &mut I,
) -> (Implemented<'b, S>, ShutdownHandle)
fn implement<'b, T, I, S>( &self, nested: &mut Iterative<'b, S, u64>, local_arrangements: &HashMap<String, Variable<Iterative<'b, S, u64>, Vec<Value>, isize>>, context: &mut I, ) -> (Implemented<'b, S>, ShutdownHandle)
Implements the type as a simple relation.
Source§fn into_bindings(&self) -> Vec<Binding>
fn into_bindings(&self) -> Vec<Binding>
Transforms an implementable into an equivalent set of bindings
that can be unified by Hector.
Source§impl<P: Ord + Implementable> Ord for PullLevel<P>
impl<P: Ord + Implementable> Ord for PullLevel<P>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P: PartialOrd + Implementable> PartialOrd for PullLevel<P>
impl<P: PartialOrd + Implementable> PartialOrd for PullLevel<P>
impl<P: Eq + Implementable> Eq for PullLevel<P>
impl<P: Implementable> StructuralPartialEq for PullLevel<P>
Auto Trait Implementations§
impl<P> Freeze for PullLevel<P>
impl<P> RefUnwindSafe for PullLevel<P>where
P: RefUnwindSafe,
impl<P> Send for PullLevel<P>where
P: Send,
impl<P> Sync for PullLevel<P>where
P: Sync,
impl<P> Unpin for PullLevel<P>
impl<P> UnwindSafe for PullLevel<P>where
P: UnwindSafe,
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