Enum tantivy::index::SegmentComponent
source · pub enum SegmentComponent {
Postings,
Positions,
FastFields,
FieldNorms,
Terms,
Store,
TempStore,
Delete,
}
Expand description
Enum describing each component of a tantivy segment.
Each component is stored in its own file,
using the pattern segment_uuid
.component_extension
,
except the delete component that takes an segment_uuid
.delete_opstamp
.component_extension
Variants§
Postings
Postings (or inverted list). Sorted lists of document ids, associated with terms
Positions
Positions of terms in each document.
FastFields
Column-oriented random-access storage of fields.
FieldNorms
Stores the sum of the length (in terms) of each field for each document. Field norms are stored as a special u64 fast field.
Terms
Dictionary associating Term
s to TermInfo
s which is
simply an address into the postings
file and the positions
file.
Store
Row-oriented, compressed storage of the documents. Accessing a document from the store is relatively slow, as it requires to decompress the entire block it belongs to.
TempStore
Temporary storage of the documents, before streamed to Store
.
Delete
Bitset describing which document of the segment is alive. (It was representing deleted docs but changed to represent alive docs from v0.17)
Implementations§
source§impl SegmentComponent
impl SegmentComponent
sourcepub fn iterator() -> Iter<'static, SegmentComponent>
pub fn iterator() -> Iter<'static, SegmentComponent>
Iterates through the components.
Trait Implementations§
source§impl Clone for SegmentComponent
impl Clone for SegmentComponent
source§fn clone(&self) -> SegmentComponent
fn clone(&self) -> SegmentComponent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for SegmentComponent
impl PartialEq for SegmentComponent
source§fn eq(&self, other: &SegmentComponent) -> bool
fn eq(&self, other: &SegmentComponent) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for SegmentComponent
impl Eq for SegmentComponent
impl StructuralPartialEq for SegmentComponent
Auto Trait Implementations§
impl Freeze for SegmentComponent
impl RefUnwindSafe for SegmentComponent
impl Send for SegmentComponent
impl Sync for SegmentComponent
impl Unpin for SegmentComponent
impl UnwindSafe for SegmentComponent
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.