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.
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.
Auto Trait Implementations
impl !RefUnwindSafe for StoreWriter
impl !Send for StoreWriter
impl !Sync for StoreWriter
impl Unpin for StoreWriter
impl !UnwindSafe for StoreWriter
Blanket Implementations
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