pub enum IndexStrategy {
FullScan,
NameHash,
ArityRange,
SignatureHash,
DomainInverted,
Composite(Vec<IndexStrategy>),
}Expand description
Index strategy for predicate lookups
Variants§
FullScan
No index, full scan
NameHash
Hash index on predicate name
ArityRange
Range index on arity
SignatureHash
Hash index on signature
DomainInverted
Inverted index on domains
Composite(Vec<IndexStrategy>)
Composite index
Implementations§
Source§impl IndexStrategy
impl IndexStrategy
Sourcepub fn estimate_cost(
&self,
predicates_count: usize,
_stats: &QueryStatistics,
) -> f64
pub fn estimate_cost( &self, predicates_count: usize, _stats: &QueryStatistics, ) -> f64
Estimate the cost of using this strategy
Trait Implementations§
Source§impl Clone for IndexStrategy
impl Clone for IndexStrategy
Source§fn clone(&self) -> IndexStrategy
fn clone(&self) -> IndexStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 IndexStrategy
impl Debug for IndexStrategy
Source§impl PartialEq for IndexStrategy
impl PartialEq for IndexStrategy
impl Eq for IndexStrategy
impl StructuralPartialEq for IndexStrategy
Auto Trait Implementations§
impl Freeze for IndexStrategy
impl RefUnwindSafe for IndexStrategy
impl Send for IndexStrategy
impl Sync for IndexStrategy
impl Unpin for IndexStrategy
impl UnwindSafe for IndexStrategy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.