Enum tantivy::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
sourceimpl SegmentComponent
impl SegmentComponent
sourcepub fn iterator() -> Iter<'static, SegmentComponent>
pub fn iterator() -> Iter<'static, SegmentComponent>
Iterates through the components.
Trait Implementations
sourceimpl Clone for SegmentComponent
impl Clone for SegmentComponent
sourcefn clone(&self) -> SegmentComponent
fn clone(&self) -> SegmentComponent
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl PartialEq<SegmentComponent> for SegmentComponent
impl PartialEq<SegmentComponent> for SegmentComponent
sourcefn eq(&self, other: &SegmentComponent) -> bool
fn eq(&self, other: &SegmentComponent) -> bool
impl Copy for SegmentComponent
impl Eq for SegmentComponent
impl StructuralEq for SegmentComponent
impl StructuralPartialEq for SegmentComponent
Auto Trait Implementations
impl RefUnwindSafe for SegmentComponent
impl Send for SegmentComponent
impl Sync for SegmentComponent
impl Unpin for SegmentComponent
impl UnwindSafe for SegmentComponent
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
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>
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 moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn 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. Read moresourcefn 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. Read moresourceimpl<T> DowncastSync for Twhere
T: Any + Send + Sync,
impl<T> DowncastSync for Twhere
T: Any + Send + Sync,
sourcefn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send + 'static>
fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send + 'static>
Arc<Trait>
(where Trait: Downcast
) to Arc<Any>
. Arc<Any>
can then be
further downcast
into Arc<ConcreteType>
where ConcreteType
implements Trait
. Read more