Struct expr::linear::plan::SafeMfpPlan [−][src]
pub struct SafeMfpPlan {
mfp: MapFilterProject,
}
Expand description
A wrapper type which indicates it is safe to simply evaluate all expressions.
Fields
mfp: MapFilterProject
Implementations
Evaluates the linear operator on a supplied list of datums.
The arguments are the initial datums associated with the row, and an appropriately lifetimed arena for temporary allocations needed by scalar evaluation.
An Ok
result will either be None
if any predicate did not
evaluate to Datum::True
, or the values of the columns listed
by self.projection
if all predicates passed. If an error
occurs in the evaluation it is returned as an Err
variant.
As the evaluation exits early with failed predicates, it may
miss some errors that would occur later in evaluation.
The row
is not cleared first, but emptied if the function
returns `Ok(Some(row)).
A version of evaluate
which produces an iterator over Datum
as output.
This version can be useful when one wants to capture the resulting datums without packing and then unpacking a row.
Methods from Deref<Target = MapFilterProject>
True if the operator describes the identity transformation.
As the arguments to Map
, Filter
, and Project
operators.
In principle, this operator can be implemented as a sequence of more elemental operators, likely less efficiently.
Determines if a scalar expression must be equal to a literal datum.
Determines if a sequence of scalar expressions must be equal to a literal row.
This method returns None
on an empty exprs
, which might be surprising, but
seems to line up with its callers’ expectations of that being a non-constraint.
The caller knows if exprs
is empty, and can modify their behavior appopriately.
if they would rather have a literal empty row.
Trait Implementations
type Target = MapFilterProject
type Target = MapFilterProject
The resulting type after dereferencing.
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
Auto Trait Implementations
impl RefUnwindSafe for SafeMfpPlan
impl Send for SafeMfpPlan
impl Sync for SafeMfpPlan
impl Unpin for SafeMfpPlan
impl UnwindSafe for SafeMfpPlan
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more