Struct tantivy::SearcherGeneration
source · [−]pub struct SearcherGeneration { /* private fields */ }
Expand description
Identifies the searcher generation accessed by a Searcher.
While this might seem redundant, a SearcherGeneration contains
both a generation_id
AND a list of (SegmentId, DeleteOpstamp)
.
This is on purpose. This object is used by the Warmer
API.
Having both information makes it possible to identify which
artifact should be refreshed or garbage collected.
Depending on the use case, Warmer
’s implementers can decide to
produce artifacts per:
generation_id
(e.g. some searcher level aggregates)(segment_id, delete_opstamp)
(e.g. segment level aggregates)segment_id
(e.g. for immutable document level information)(generation_id, segment_id)
(e.g. for consistent dynamic column)- …
Implementations
Trait Implementations
sourceimpl Clone for SearcherGeneration
impl Clone for SearcherGeneration
sourcefn clone(&self) -> SearcherGeneration
fn clone(&self) -> SearcherGeneration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SearcherGeneration
impl Debug for SearcherGeneration
sourceimpl Hash for SearcherGeneration
impl Hash for SearcherGeneration
sourceimpl Ord for SearcherGeneration
impl Ord for SearcherGeneration
sourceimpl PartialEq<SearcherGeneration> for SearcherGeneration
impl PartialEq<SearcherGeneration> for SearcherGeneration
sourcefn eq(&self, other: &SearcherGeneration) -> bool
fn eq(&self, other: &SearcherGeneration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SearcherGeneration) -> bool
fn ne(&self, other: &SearcherGeneration) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SearcherGeneration> for SearcherGeneration
impl PartialOrd<SearcherGeneration> for SearcherGeneration
sourcefn partial_cmp(&self, other: &SearcherGeneration) -> Option<Ordering>
fn partial_cmp(&self, other: &SearcherGeneration) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for SearcherGeneration
impl StructuralEq for SearcherGeneration
impl StructuralPartialEq for SearcherGeneration
Auto Trait Implementations
impl RefUnwindSafe for SearcherGeneration
impl Send for SearcherGeneration
impl Sync for SearcherGeneration
impl Unpin for SearcherGeneration
impl UnwindSafe for SearcherGeneration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more