pub struct JoinConfig {
pub no_sort: bool,
}Expand description
Configuration properties for a JoinCursor.
Pass to Database::join to control join
cursor behaviour.
§Default
no_sort = false— cursors are automatically sorted by estimated duplicate count (smallest set first) so that the join algorithm can prune candidates as early as possible. Setno_sort = trueif you have already ordered the cursor array optimally.
Fields§
§no_sort: boolDisables automatic cursor sorting when true.
Implementations§
Source§impl JoinConfig
impl JoinConfig
Sourcepub fn set_no_sort(&mut self, no_sort: bool)
pub fn set_no_sort(&mut self, no_sort: bool)
Sets whether automatic cursor sorting is disabled.
Sourcepub fn with_no_sort(self, no_sort: bool) -> Self
pub fn with_no_sort(self, no_sort: bool) -> Self
Builder-style no_sort setter.
Sourcepub fn get_no_sort(&self) -> bool
pub fn get_no_sort(&self) -> bool
Returns true if automatic cursor sorting is disabled.
Trait Implementations§
Source§impl Clone for JoinConfig
impl Clone for JoinConfig
Source§fn clone(&self) -> JoinConfig
fn clone(&self) -> JoinConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JoinConfig
impl Debug for JoinConfig
Source§impl Default for JoinConfig
impl Default for JoinConfig
Source§fn default() -> JoinConfig
fn default() -> JoinConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JoinConfig
impl RefUnwindSafe for JoinConfig
impl Send for JoinConfig
impl Sync for JoinConfig
impl Unpin for JoinConfig
impl UnsafeUnpin for JoinConfig
impl UnwindSafe for JoinConfig
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