Enum tantivy::SegmentComponent
[−]
[src]
pub enum SegmentComponent { POSTINGS, POSITIONS, 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.
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]
pub fn iterator() -> impl Iterator<Item = &'static SegmentComponent>
[src]
Iterates through the components.
Trait Implementations
impl Copy for SegmentComponent
[src]
impl Clone for SegmentComponent
[src]
fn clone(&self) -> SegmentComponent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more