[][src]Enum tantivy::SegmentComponent

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 Terms to TermInfos 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() -> Iter<'static, SegmentComponent>[src]

Iterates through the components.

Trait Implementations

impl Clone for SegmentComponent[src]

impl Copy for SegmentComponent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]