Enum tantivy::SegmentComponent [−][src]
pub enum SegmentComponent { POSTINGS, POSITIONS, POSITIONSSKIP, FASTFIELDS, FIELDNORMS, TERMS, STORE, DELETE, }
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 to terms
POSITIONS
Positions of terms in each document.
POSITIONSSKIP
Index to seek within the position file
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, LZ4-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.
DELETE
Bitset describing which document of the segment is deleted.
Methods
impl SegmentComponent
[src]
impl SegmentComponent
ⓘImportant traits for Iter<'a, T>pub fn iterator() -> Iter<'static, SegmentComponent>
[src]
pub fn iterator() -> Iter<'static, SegmentComponent>
Iterates through the components.
Trait Implementations
impl Copy for SegmentComponent
[src]
impl Copy for SegmentComponent
impl Clone for SegmentComponent
[src]
impl Clone for SegmentComponent
fn clone(&self) -> SegmentComponent
[src]
fn clone(&self) -> SegmentComponent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for SegmentComponent
impl Send for SegmentComponent
impl Sync for SegmentComponent
impl Sync for SegmentComponent