pub struct QueryHintsBuilder { /* private fields */ }Expand description
Builder for QueryHints
Implementations§
Source§impl QueryHintsBuilder
impl QueryHintsBuilder
Sourcepub fn with_join_hint(self, hint: JoinHint) -> Self
pub fn with_join_hint(self, hint: JoinHint) -> Self
Add a join hint
Sourcepub fn merge_join(self, variables: Vec<&str>) -> Self
pub fn merge_join(self, variables: Vec<&str>) -> Self
Add merge join hint for variables
Sourcepub fn nested_loop_join(self, variables: Vec<&str>) -> Self
pub fn nested_loop_join(self, variables: Vec<&str>) -> Self
Add nested loop join hint for variables
Sourcepub fn with_index_hint(self, hint: IndexHint) -> Self
pub fn with_index_hint(self, hint: IndexHint) -> Self
Add an index hint
Sourcepub fn use_index(self, pattern_id: &str, index_name: &str) -> Self
pub fn use_index(self, pattern_id: &str, index_name: &str) -> Self
Force use of a specific index
Sourcepub fn ignore_index(self, pattern_id: &str, index_name: &str) -> Self
pub fn ignore_index(self, pattern_id: &str, index_name: &str) -> Self
Ignore a specific index
Sourcepub fn with_cardinality_hint(self, hint: CardinalityHint) -> Self
pub fn with_cardinality_hint(self, hint: CardinalityHint) -> Self
Add a cardinality hint
Sourcepub fn cardinality(self, variable: &str, cardinality: u64) -> Self
pub fn cardinality(self, variable: &str, cardinality: u64) -> Self
Override cardinality for a variable
Sourcepub fn with_parallelism(self, hint: ParallelismHint) -> Self
pub fn with_parallelism(self, hint: ParallelismHint) -> Self
Set parallelism hint
Sourcepub fn no_parallel(self) -> Self
pub fn no_parallel(self) -> Self
Disable parallel execution
Sourcepub fn with_materialization_hint(self, hint: MaterializationHint) -> Self
pub fn with_materialization_hint(self, hint: MaterializationHint) -> Self
Add materialization hint
Sourcepub fn timeout_secs(self, secs: u64) -> Self
pub fn timeout_secs(self, secs: u64) -> Self
Set timeout in seconds
Sourcepub fn with_memory_hint(self, hint: MemoryHint) -> Self
pub fn with_memory_hint(self, hint: MemoryHint) -> Self
Set memory hint
Sourcepub fn memory_limit(self, bytes: usize) -> Self
pub fn memory_limit(self, bytes: usize) -> Self
Set memory limit in bytes
Sourcepub fn prefer_streaming(self) -> Self
pub fn prefer_streaming(self) -> Self
Prefer streaming execution
Sourcepub fn with_cache_hint(self, hint: CacheHint) -> Self
pub fn with_cache_hint(self, hint: CacheHint) -> Self
Set cache hints
Sourcepub fn with_join_order(self, hint: JoinOrderHint) -> Self
pub fn with_join_order(self, hint: JoinOrderHint) -> Self
Set join order hint
Sourcepub fn fixed_join_order(self, order: Vec<&str>) -> Self
pub fn fixed_join_order(self, order: Vec<&str>) -> Self
Force specific join order
Sourcepub fn with_filter_hint(self, hint: FilterHint) -> Self
pub fn with_filter_hint(self, hint: FilterHint) -> Self
Add filter hint
Sourcepub fn build(self) -> QueryHints
pub fn build(self) -> QueryHints
Build the QueryHints
Trait Implementations§
Source§impl Debug for QueryHintsBuilder
impl Debug for QueryHintsBuilder
Source§impl Default for QueryHintsBuilder
impl Default for QueryHintsBuilder
Source§fn default() -> QueryHintsBuilder
fn default() -> QueryHintsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryHintsBuilder
impl RefUnwindSafe for QueryHintsBuilder
impl Send for QueryHintsBuilder
impl Sync for QueryHintsBuilder
impl Unpin for QueryHintsBuilder
impl UnsafeUnpin for QueryHintsBuilder
impl UnwindSafe for QueryHintsBuilder
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.