Class StoredFieldsWriter

java.lang.Object
org.apache.lucene.codecs.StoredFieldsWriter
All Implemented Interfaces:
Closeable, AutoCloseable, Accountable
Direct Known Subclasses:
Lucene90CompressingStoredFieldsWriter

public abstract class StoredFieldsWriter extends Object implements Closeable, Accountable
Codec API for writing stored fields:
  1. For every document, startDocument() is called, informing the Codec that a new document has started.
  2. writeField(FieldInfo, IndexableField) is called for each field in the document.
  3. After all documents have been written, finish(int) is called for verification/sanity-checks.
  4. Finally the writer is closed (close())
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Constructor Details

    • StoredFieldsWriter

      protected StoredFieldsWriter()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details