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:
- FieldsConsumer is created by FieldsConsumer(SegmentWriteState).
- For each field, AddField(FieldInfo) is called, returning a TermsConsumer for the field.
- After all fields are added, the consumer is Dispose()d.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class FieldsConsumer : IDisposable
Constructors
Name | Description |
---|---|
FieldsConsumer() | Sole constructor. (For invocation by subclass constructors, typically implicit.) |
Methods
Name | Description |
---|---|
AddField(FieldInfo) | Add a new field. |
Dispose() | Called when we are done adding everything. |
Dispose(Boolean) | Implementations must override and should dispose all resources used by this instance. |
Merge(MergeState, Fields) | Called during merging to merge all 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. |