public abstract class FieldsConsumer
extends java.lang.Object
implements java.io.Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
FieldsConsumer()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
void |
merge(MergeState mergeState)
Merges in the fields from the readers in
mergeState. |
abstract void |
write(Fields fields)
Write all fields, terms and postings.
|
protected FieldsConsumer()
public abstract void write(Fields fields) throws java.io.IOException
Notes:
java.io.IOExceptionpublic void merge(MergeState mergeState) throws java.io.IOException
mergeState. The default implementation skips
and maps around deleted documents, and calls write(Fields).
Implementations can override this method for more sophisticated
merging (bulk-byte copying, etc).java.io.IOExceptionpublic abstract void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.