Package org.apache.lucene.codecs
Class FieldsProducer
java.lang.Object
org.apache.lucene.index.Fields
org.apache.lucene.codecs.FieldsProducer
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<String>
- Direct Known Subclasses:
Lucene90BlockTreeTermsReader
Abstract API that produces terms, doc, freq, prox, offset and payloads postings.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class org.apache.lucene.index.Fields
EMPTY_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Checks consistency of this reader.abstract void
close()
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 java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FieldsProducer
protected FieldsProducer()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
checkIntegrity
Checks 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:
IOException
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
getMergeInstance
Returns an instance optimized for merging. This instance may only be consumed in the thread that calledgetMergeInstance()
.The default implementation returns
this
-