pub struct EdgeAwarePlanner { /* private fields */ }Expand description
Edge-aware query planner enhancements
Implementations§
Source§impl EdgeAwarePlanner
impl EdgeAwarePlanner
Sourcepub fn new(hints: WorkloadHints, memory_limit: u64) -> Self
pub fn new(hints: WorkloadHints, memory_limit: u64) -> Self
Create a new edge-aware planner
Sourcepub fn from_global() -> Self
pub fn from_global() -> Self
Create from global workload learner
Sourcepub fn adjust_cost(&self, base_cost: f64, memory_estimate: u64) -> f64
pub fn adjust_cost(&self, base_cost: f64, memory_estimate: u64) -> f64
Adjust cost for edge computing constraints
Sourcepub fn should_stream(&self, estimated_rows: u64) -> bool
pub fn should_stream(&self, estimated_rows: u64) -> bool
Decide if we should use streaming execution
Sourcepub fn batch_size(&self) -> usize
pub fn batch_size(&self) -> usize
Get preferred batch size
Sourcepub fn use_bloom_filters(&self) -> bool
pub fn use_bloom_filters(&self) -> bool
Check if bloom filters should be used
Sourcepub fn recommend_join_for_edge(
&self,
build_rows: u64,
probe_rows: u64,
memory_per_build_row: u64,
) -> EdgeJoinRecommendation
pub fn recommend_join_for_edge( &self, build_rows: u64, probe_rows: u64, memory_per_build_row: u64, ) -> EdgeJoinRecommendation
Recommend join algorithm for edge constraints
Auto Trait Implementations§
impl Freeze for EdgeAwarePlanner
impl RefUnwindSafe for EdgeAwarePlanner
impl Send for EdgeAwarePlanner
impl Sync for EdgeAwarePlanner
impl Unpin for EdgeAwarePlanner
impl UnsafeUnpin for EdgeAwarePlanner
impl UnwindSafe for EdgeAwarePlanner
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