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,
NormsProducer norms)
Merges in the fields from the readers in
mergeState. |
abstract void |
write(Fields fields,
NormsProducer norms)
Write all fields, terms and postings.
|
protected FieldsConsumer()
public abstract void write(Fields fields, NormsProducer norms) throws IOException
Notes:
IOExceptionpublic void merge(MergeState mergeState, NormsProducer norms) throws IOException
mergeState. The default implementation skips
and maps around deleted documents, and calls write(Fields,NormsProducer).
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-2019 Apache Software Foundation. All Rights Reserved.