pub struct FilterRanker { /* private fields */ }Expand description
Filter ranker
Implementations§
Source§impl FilterRanker
impl FilterRanker
Sourcepub fn new(config: RankingConfig) -> FilterRanker
pub fn new(config: RankingConfig) -> FilterRanker
Create new filter ranker
Sourcepub fn with_defaults() -> FilterRanker
pub fn with_defaults() -> FilterRanker
Create with default configuration
Sourcepub fn with_stats(self, stats: TableStats) -> FilterRanker
pub fn with_stats(self, stats: TableStats) -> FilterRanker
Set table statistics
Sourcepub fn estimate_selectivity(&self, filter: &FilterExpr) -> f64
pub fn estimate_selectivity(&self, filter: &FilterExpr) -> f64
Estimate selectivity of a filter
Sourcepub fn estimate_cost(&self, filter: &FilterExpr) -> f64
pub fn estimate_cost(&self, filter: &FilterExpr) -> f64
Estimate cost of evaluating a filter
Sourcepub fn rank(&self, filters: Vec<FilterExpr>) -> Vec<RankedFilter>
pub fn rank(&self, filters: Vec<FilterExpr>) -> Vec<RankedFilter>
Rank a list of filters
Sourcepub fn reorder(&self, filters: Vec<FilterExpr>) -> Vec<FilterExpr>
pub fn reorder(&self, filters: Vec<FilterExpr>) -> Vec<FilterExpr>
Reorder filters for optimal execution
Sourcepub fn config(&self) -> &RankingConfig
pub fn config(&self) -> &RankingConfig
Get configuration
Trait Implementations§
Source§impl Default for FilterRanker
impl Default for FilterRanker
Source§fn default() -> FilterRanker
fn default() -> FilterRanker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterRanker
impl RefUnwindSafe for FilterRanker
impl Send for FilterRanker
impl Sync for FilterRanker
impl Unpin for FilterRanker
impl UnsafeUnpin for FilterRanker
impl UnwindSafe for FilterRanker
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request