public abstract class FieldsConsumer extends Object implements 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 IOException
Notes:
IOExceptionpublic void merge(MergeState mergeState) throws 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).IOExceptionpublic abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.