Struct tantivy::store::StoreReader
[−]
[src]
pub struct StoreReader { /* fields omitted */ }
Reads document off tantivy's Store
Methods
impl StoreReader
[src]
pub fn from_source(data: ReadOnlySource) -> StoreReader
[src]
Opens a store reader
pub fn get(&self, doc_id: DocId) -> Result<Document>
[src]
Reads a given document.
Calling .get(doc)
is relatively costly as it requires
decompressing a LZ4-compressed block.
It should not be called to score documents for instance.
Trait Implementations
impl Clone for StoreReader
[src]
fn clone(&self) -> StoreReader
[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