Struct tantivy::fastfield::FastFieldsWriter
[−]
[src]
pub struct FastFieldsWriter { /* fields omitted */ }
The fastfieldswriter regroup all of the fast field writers.
Methods
impl FastFieldsWriter
[src]
pub fn from_schema(schema: &Schema) -> FastFieldsWriter
[src]
Create all FastFieldWriter
required by the schema.
pub fn get_field_writer(
&mut self,
field: Field
) -> Option<&mut IntFastFieldWriter>
[src]
&mut self,
field: Field
) -> Option<&mut IntFastFieldWriter>
Get the FastFieldWriter
associated to a field.
pub fn add_document(&mut self, doc: &Document)
[src]
Indexes all of the fastfields of a new document.
pub fn serialize(
&self,
serializer: &mut FastFieldSerializer,
mapping: &HashMap<Field, HashMap<usize, usize>>
) -> Result<()>
[src]
&self,
serializer: &mut FastFieldSerializer,
mapping: &HashMap<Field, HashMap<usize, usize>>
) -> Result<()>
Serializes all of the FastFieldWriter
s by pushing them in
order to the fast field serializer.
pub fn fill_val_up_to(&mut self, doc: DocId)
[src]
Ensures all of the fast field writers have
reached doc
. (included)
The missing values will be filled with 0.