|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.codecs.FieldsConsumer
public abstract class FieldsConsumer
Abstract API that consumes terms, doc, freq, prox, offset and payloads postings. Concrete implementations of this actually do "something" with the postings (write it into the index in a specific format).
The lifecycle is:
PostingsFormat.fieldsConsumer(SegmentWriteState)
.
addField(FieldInfo)
is called,
returning a TermsConsumer
for the field.
close()
d.
Constructor Summary | |
---|---|
protected |
FieldsConsumer()
Sole constructor. |
Method Summary | |
---|---|
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)
Called during merging to merge all Fields from
sub-readers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FieldsConsumer()
Method Detail |
---|
public abstract TermsConsumer addField(FieldInfo field) throws IOException
IOException
public abstract void close() throws IOException
close
in interface Closeable
IOException
public void merge(MergeState mergeState, Fields fields) throws IOException
Fields
from
sub-readers. This must recurse to merge all postings
(terms, docs, positions, etc.). A PostingsFormat
can override this default
implementation to do its own merging.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |