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:
IOException
public 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).IOException
public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.