public abstract class FieldsConsumer extends Object implements Closeable
The lifecycle is:
PostingsFormat.fieldsConsumer(SegmentWriteState).
addField(FieldInfo) is called,
returning a TermsConsumer for the field.
close()d.
| Constructor and Description |
|---|
FieldsConsumer() |
| 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) |
public abstract TermsConsumer addField(FieldInfo field) throws IOException
IOExceptionpublic abstract void close()
throws IOException
close in interface CloseableIOExceptionpublic void merge(MergeState mergeState, Fields fields) throws IOException
IOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.