pub enum IndexAlgorithm {
MinMax,
Set,
BloomFilter,
NgramBloomFilter,
TokenBloomFilter,
Inverted,
}Expand description
The algorithm of a ClickHouse data-skipping index.
PHP: Utopia\Query\Schema\ClickHouse\IndexAlgorithm.
Variants§
MinMax
minmax.
Set
set(n).
BloomFilter
bloom_filter([rate]).
NgramBloomFilter
ngrambf_v1(n, size, hashes, seed).
TokenBloomFilter
tokenbf_v1(size, hashes, seed).
Inverted
inverted.
Implementations§
Source§impl IndexAlgorithm
impl IndexAlgorithm
Sourcepub const CASES: &'static [IndexAlgorithm]
pub const CASES: &'static [IndexAlgorithm]
Every case, in declaration order.
PHP: cases().
Sourcepub const PHP_CLASS: &'static str = "Utopia\\Query\\Schema\\ClickHouse\\IndexAlgorithm"
pub const PHP_CLASS: &'static str = "Utopia\\Query\\Schema\\ClickHouse\\IndexAlgorithm"
The PHP class of this enumeration.
Sourcepub fn try_from_value(value: &str) -> Option<Self>
pub fn try_from_value(value: &str) -> Option<Self>
The case with backing value value, if any.
PHP: tryFrom().
Sourcepub fn from_value(value: &str) -> Result<Self, Error>
pub fn from_value(value: &str) -> Result<Self, Error>
The case with backing value value.
PHP: from(), which throws ValueError (Error::InvalidValue) with the same message.
Source§impl IndexAlgorithm
impl IndexAlgorithm
Sourcepub const fn accepts_args(self) -> bool
pub const fn accepts_args(self) -> bool
Whether the algorithm takes arguments (minmax and inverted do not).
Trait Implementations§
Source§impl Clone for IndexAlgorithm
impl Clone for IndexAlgorithm
impl Copy for IndexAlgorithm
Source§impl Debug for IndexAlgorithm
impl Debug for IndexAlgorithm
Source§impl Display for IndexAlgorithm
impl Display for IndexAlgorithm
impl Eq for IndexAlgorithm
Source§impl Hash for IndexAlgorithm
impl Hash for IndexAlgorithm
Source§impl PartialEq for IndexAlgorithm
impl PartialEq for IndexAlgorithm
impl StructuralPartialEq for IndexAlgorithm
Auto Trait Implementations§
impl Forget for IndexAlgorithm
impl Freeze for IndexAlgorithm
impl Move for IndexAlgorithm
impl RefUnwindSafe for IndexAlgorithm
impl Send for IndexAlgorithm
impl Sync for IndexAlgorithm
impl Unpin for IndexAlgorithm
impl UnsafeUnpin for IndexAlgorithm
impl UnwindSafe for IndexAlgorithm
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.