Struct tantivy::store::StoreWriter[][src]

pub struct StoreWriter { /* fields omitted */ }
Expand description

Write tantivy’s Store

Contrary to the other components of tantivy, the store is written to disc as document as being added, as opposed to when the segment is getting finalized.

The skip list index on the other hand, is built in memory.

Implementations

Create a store writer.

The store writer will writes blocks on disc as document are added.

The memory used (inclusive childs)

Store bytes of a serialized document.

The document id is implicitely the current number of documents.

Store a new document.

The document id is implicitely the current number of documents.

Stacks a store reader on top of the documents written so far. This method is an optimization compared to iterating over the documents in the store and adding them one by one, as the store’s data will not be decompressed and then recompressed.

Finalized the store writer.

Compress the last unfinished block if any, and serializes the skip list index on disc.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert 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 more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.