Class Lucene90CompressingStoredFieldsWriter
- java.lang.Object
- 
- org.apache.lucene.codecs.StoredFieldsWriter
- 
- org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsWriter
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Accountable
 
 public final class Lucene90CompressingStoredFieldsWriter extends StoredFieldsWriter - WARNING: This API is experimental and might change in incompatible ways in the next release.
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.lucene.codecs.StoredFieldsWriterStoredFieldsWriter.MergeVisitor
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringFIELDS_EXTENSIONExtension of stored fields filestatic StringINDEX_CODEC_NAMECodec name for the index.static StringINDEX_EXTENSIONExtension of stored fields indexstatic StringMETA_EXTENSIONExtension of stored fields meta- 
Fields inherited from interface org.apache.lucene.util.AccountableNULL_ACCOUNTABLE
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinish(int numDocs)Called beforeStoredFieldsWriter.close(), passing in the number of documents that were written.voidfinishDocument()Called when a document and all its fields have been added.intmerge(MergeState mergeState)Merges in the stored fields from the readers inmergeState.longramBytesUsed()Return the memory usage of this object in bytes.voidstartDocument()Called before writing the stored fields of the document.voidwriteField(FieldInfo info, IndexableField field)Writes a single stored field.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.lucene.util.AccountablegetChildResources
 
- 
 
- 
- 
- 
Field Detail- 
FIELDS_EXTENSIONpublic static final String FIELDS_EXTENSION Extension of stored fields file- See Also:
- Constant Field Values
 
 - 
INDEX_EXTENSIONpublic static final String INDEX_EXTENSION Extension of stored fields index- See Also:
- Constant Field Values
 
 - 
META_EXTENSIONpublic static final String META_EXTENSION Extension of stored fields meta- See Also:
- Constant Field Values
 
 - 
INDEX_CODEC_NAMEpublic static final String INDEX_CODEC_NAME Codec name for the index.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- StoredFieldsWriter
- Throws:
- IOException
 
 - 
startDocumentpublic void startDocument() throws IOExceptionDescription copied from class:StoredFieldsWriterCalled before writing the stored fields of the document.StoredFieldsWriter.writeField(FieldInfo, IndexableField)will be called for each stored field. Note that this is called even if the document has no stored fields.- Specified by:
- startDocumentin class- StoredFieldsWriter
- Throws:
- IOException
 
 - 
finishDocumentpublic void finishDocument() throws IOExceptionDescription copied from class:StoredFieldsWriterCalled when a document and all its fields have been added.- Overrides:
- finishDocumentin class- StoredFieldsWriter
- Throws:
- IOException
 
 - 
writeFieldpublic void writeField(FieldInfo info, IndexableField field) throws IOException Description copied from class:StoredFieldsWriterWrites a single stored field.- Specified by:
- writeFieldin class- StoredFieldsWriter
- Throws:
- IOException
 
 - 
finishpublic void finish(int numDocs) throws IOExceptionDescription copied from class:StoredFieldsWriterCalled beforeStoredFieldsWriter.close(), passing in the number of documents that were written. Note that this is intentionally redundant (equivalent to the number of calls toStoredFieldsWriter.startDocument(), but a Codec should check that this is the case to detect the JRE bug described in LUCENE-1282.- Specified by:
- finishin class- StoredFieldsWriter
- Throws:
- IOException
 
 - 
mergepublic int merge(MergeState mergeState) throws IOException Description copied from class:StoredFieldsWriterMerges in the stored fields from the readers inmergeState. The default implementation skips over deleted documents, and usesStoredFieldsWriter.startDocument(),StoredFieldsWriter.writeField(FieldInfo, IndexableField), andStoredFieldsWriter.finish(int), returning the number of documents that were written. Implementations can override this method for more sophisticated merging (bulk-byte copying, etc).- Overrides:
- mergein class- StoredFieldsWriter
- Throws:
- IOException
 
 - 
ramBytesUsedpublic long ramBytesUsed() Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.
 
- 
 
-