StoredFieldsWriter
Codec API for writing stored fields:
For every document, .startDocument is called, informing the Codec that a new document has started.
writeFieldis called for each field in the document.After all documents have been written, .finish is called for verification/sanity-checks.
Finally the writer is closed (.close)
Inheritors
Properties
Functions
Called when a document and all its fields have been added.
Merges in the stored fields from the readers in mergeState. The default implementation skips over deleted documents, and uses .startDocument, writeField, and .finish, returning the number of documents that were written. Implementations can override this method for more sophisticated merging (bulk-byte copying, etc).
Return the memory usage of this object in bytes. Negative values are illegal.
Called before writing the stored fields of the document. writeField will be called for each stored field. Note that this is called even if the document has no stored fields.
Writes a stored double value.
Writes a stored float value.
Writes a stored int value.
Writes a stored long value.
Writes a stored String value.
Writes a stored binary value from a StoredFieldDataInput.
Writes a stored binary value.