pub fn finalize(mut self) -> crate::Result<Vec<u64>> {
        self.fieldnorms_writer.fill_up_to_max_doc(self.max_doc);
        write(
            &self.multifield_postings,
            &self.fast_field_writers,
            &self.fieldnorms_writer,
            self.segment_serializer,
        )?;
        Ok(self.doc_opstamps)
    }
/// Lay on disk the current content of the `SegmentWriter`
///
/// Finalize consumes the `SegmentWriter`, so that it cannot
/// be used afterwards.
Lay on disk the current content of the `SegmentWriter`
Finalize consumes the `SegmentWriter`, so that it cannot
be used afterwards.
Lay on disk the current content of the ` SegmentWriter ` Finalize consumes the ` SegmentWriter ` so that it cannot be used afterwards .
pub fn finalize(mut self) -> crate::Result<Vec<u64>> {
        self.fieldnorms_writer.fill_up_to_max_doc(self.max_doc);
        write(
            &self.multifield_postings,
            &self.fast_field_writers,
            &self.fieldnorms_writer,
            self.segment_serializer,
        )?;
        Ok(self.doc_opstamps)
    }
pub fn finalize ( mut self ) -> crate :: Result < Vec < u64 > > { self . fieldnorms_writer . fill_up_to_max_doc ( self . max_doc ) ; write ( & self . multifield_postings , & self . fast_field_writers , & self . fieldnorms_writer , self . segment_serializer , ) ? ; Ok ( self . doc_opstamps ) }
Lay on disk the current content of the `SegmentWriter`
Finalize consumes the `SegmentWriter`, so that it cannot
be used afterwards.
Lay on disk the current content of the ` SegmentWriter ` Finalize consumes the ` SegmentWriter ` so that it cannot be used afterwards .
mut self
mut self