public abstract class FieldsConsumer
extends java.lang.Object
implements java.io.Closeable
The lifecycle is:
PostingsFormat.fieldsConsumer(SegmentWriteState).
addField(FieldInfo) is called,
returning a TermsConsumer for the field.
close()d.
| Modifier and Type | Method and Description |
|---|---|
abstract TermsConsumer |
addField(FieldInfo field)
Add a new field
|
abstract void |
close()
Called when we are done adding everything.
|
void |
merge(MergeState mergeState,
Fields fields)
Called during merging to merge all
Fields from
sub-readers. |
public abstract TermsConsumer addField(FieldInfo field) throws java.io.IOException
java.io.IOExceptionpublic abstract void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void merge(MergeState mergeState, Fields fields) throws java.io.IOException
Fields from
sub-readers. This must recurse to merge all postings
(terms, docs, positions, etc.). A PostingsFormat can override this default
implementation to do its own merging.java.io.IOExceptionCopyright © 2010 - 2024 Adobe. All Rights Reserved