pub struct Filter<P: Implementable> {
pub variables: Vec<u32>,
pub predicate: Predicate,
pub plan: Box<P>,
pub constants: Vec<Option<Value>>,
}
Expand description
A plan stage filtering source tuples by the specified predicate. Frontends are responsible for ensuring that the source binds the argument variables.
Fields§
§variables: Vec<u32>
TODO
predicate: Predicate
Logical predicate to apply.
plan: Box<P>
Plan for the data source.
constants: Vec<Option<Value>>
Constant inputs
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for Filter<P>where
P: Deserialize<'de> + Implementable,
impl<'de, P> Deserialize<'de> for Filter<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 Filter<P>
impl<P: Implementable> Implementable for Filter<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 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 Filter<P>
impl<P: Ord + Implementable> Ord for Filter<P>
Source§impl<P: PartialOrd + Implementable> PartialOrd for Filter<P>
impl<P: PartialOrd + Implementable> PartialOrd for Filter<P>
impl<P: Eq + Implementable> Eq for Filter<P>
impl<P: Implementable> StructuralPartialEq for Filter<P>
Auto Trait Implementations§
impl<P> Freeze for Filter<P>
impl<P> RefUnwindSafe for Filter<P>where
P: RefUnwindSafe,
impl<P> Send for Filter<P>where
P: Send,
impl<P> Sync for Filter<P>where
P: Sync,
impl<P> Unpin for Filter<P>
impl<P> UnwindSafe for Filter<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