Package org.apache.lucene.codecs
Class FieldsProducer
- java.lang.Object
-
- org.apache.lucene.index.Fields
-
- org.apache.lucene.codecs.FieldsProducer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Iterable<java.lang.String>,Accountable
- Direct Known Subclasses:
BlockTermsReader,BlockTreeTermsReader,BloomFilteringPostingsFormat.BloomFilteredFieldsProducer,CompletionFieldsProducer,DirectPostingsFormat.DirectFields,FSTTermsReader,OrdsBlockTreeTermsReader,PerFieldMergeState.FilterFieldsProducer,PerFieldPostingsFormat.FieldsReader,SimpleTextFieldsReader,UniformSplitTermsReader,VersionBlockTreeTermsReader
public abstract class FieldsProducer extends Fields implements java.io.Closeable, Accountable
Abstract API that produces terms, doc, freq, prox, offset and payloads postings.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.index.Fields
EMPTY_ARRAY
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFieldsProducer()Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcheckIntegrity()Checks consistency of this reader.abstract voidclose()FieldsProducergetMergeInstance()Returns an instance optimized for merging.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsed
-
-
-
-
Method Detail
-
close
public abstract void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
checkIntegrity
public abstract void checkIntegrity() throws java.io.IOExceptionChecks consistency of this reader.Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Throws:
java.io.IOException
-
getMergeInstance
public FieldsProducer getMergeInstance()
Returns an instance optimized for merging. This instance may only be consumed in the thread that calledgetMergeInstance().The default implementation returns
this
-
-