Struct datafusion_physical_expr::ExprBoundaries
source · pub struct ExprBoundaries {
pub max_value: ScalarValue,
pub min_value: ScalarValue,
pub distinct_count: Option<usize>,
pub selectivity: Option<f64>,
}
Expand description
Statistics about the result of a single expression.
Fields
max_value: ScalarValue
Maximum value this expression’s result can have.
min_value: ScalarValue
Minimum value this expression’s result can have.
distinct_count: Option<usize>
Maximum number of distinct values this expression can produce, if known.
selectivity: Option<f64>
Selectivity of this expression if it were used as a predicate, as a value between 0 and 1.
Implementations
sourceimpl ExprBoundaries
impl ExprBoundaries
sourcepub fn new(
max_value: ScalarValue,
min_value: ScalarValue,
distinct_count: Option<usize>
) -> Self
pub fn new(
max_value: ScalarValue,
min_value: ScalarValue,
distinct_count: Option<usize>
) -> Self
Create a new ExprBoundaries
.
sourcepub fn reduce(&self) -> Option<ScalarValue>
pub fn reduce(&self) -> Option<ScalarValue>
Try to reduce the expression boundaries to a single value if possible.
Trait Implementations
sourceimpl Clone for ExprBoundaries
impl Clone for ExprBoundaries
sourcefn clone(&self) -> ExprBoundaries
fn clone(&self) -> ExprBoundaries
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExprBoundaries
impl Debug for ExprBoundaries
sourceimpl PartialEq<ExprBoundaries> for ExprBoundaries
impl PartialEq<ExprBoundaries> for ExprBoundaries
sourcefn eq(&self, other: &ExprBoundaries) -> bool
fn eq(&self, other: &ExprBoundaries) -> bool
impl StructuralPartialEq for ExprBoundaries
Auto Trait Implementations
impl RefUnwindSafe for ExprBoundaries
impl Send for ExprBoundaries
impl Sync for ExprBoundaries
impl Unpin for ExprBoundaries
impl UnwindSafe for ExprBoundaries
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more