pub struct EqualityIndex { /* private fields */ }Expand description
Index for equality lookups (namespace, source, project_id, etc.)
Implementations§
Source§impl EqualityIndex
impl EqualityIndex
Sourcepub fn add_string(&mut self, value: &str, doc_id: u64)
pub fn add_string(&mut self, value: &str, doc_id: u64)
Add a document with a string value
Sourcepub fn add_uint(&mut self, value: u64, doc_id: u64)
pub fn add_uint(&mut self, value: u64, doc_id: u64)
Add a document with an unsigned integer value
Sourcepub fn remove_string(&mut self, value: &str, doc_id: u64)
pub fn remove_string(&mut self, value: &str, doc_id: u64)
Remove a document with a string value
Sourcepub fn lookup_string(&self, value: &str) -> AllowedSet
pub fn lookup_string(&self, value: &str) -> AllowedSet
Lookup documents with a string value
Sourcepub fn lookup_int(&self, value: i64) -> AllowedSet
pub fn lookup_int(&self, value: i64) -> AllowedSet
Lookup documents with an integer value
Sourcepub fn lookup_uint(&self, value: u64) -> AllowedSet
pub fn lookup_uint(&self, value: u64) -> AllowedSet
Lookup documents with a uint value
Sourcepub fn lookup_string_in(&self, values: &[String]) -> AllowedSet
pub fn lookup_string_in(&self, values: &[String]) -> AllowedSet
Lookup documents in a set of string values (OR)
Sourcepub fn lookup_uint_in(&self, values: &[u64]) -> AllowedSet
pub fn lookup_uint_in(&self, values: &[u64]) -> AllowedSet
Lookup documents in a set of uint values (OR)
Sourcepub fn string_values(&self) -> impl Iterator<Item = &str>
pub fn string_values(&self) -> impl Iterator<Item = &str>
Get all unique values for this field
Sourcepub fn stats(&self) -> EqualityIndexStats
pub fn stats(&self) -> EqualityIndexStats
Get statistics
Trait Implementations§
Source§impl Debug for EqualityIndex
impl Debug for EqualityIndex
Source§impl Default for EqualityIndex
impl Default for EqualityIndex
Source§fn default() -> EqualityIndex
fn default() -> EqualityIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EqualityIndex
impl RefUnwindSafe for EqualityIndex
impl Send for EqualityIndex
impl Sync for EqualityIndex
impl Unpin for EqualityIndex
impl UnsafeUnpin for EqualityIndex
impl UnwindSafe for EqualityIndex
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 more