Package org.apache.lucene.codecs
Class TermVectorsReader
java.lang.Object
org.apache.lucene.codecs.TermVectorsReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
- Direct Known Subclasses:
Lucene90CompressingTermVectorsReader
Codec API for reading term vectors:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Checks consistency of this reader.abstract TermVectorsReader
clone()
Create a clone that one caller at a time may use to read term vectors.abstract Fields
get
(int doc) Returns term vectors for this document, or null if term vectors were not indexed.Returns an instance optimized for merging.
-
Constructor Details
-
TermVectorsReader
protected TermVectorsReader()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
get
Returns term vectors for this document, or null if term vectors were not indexed. If offsets are available they are in anOffsetAttribute
available from thePostingsEnum
.- 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.
-
clone
Create a clone that one caller at a time may use to read term vectors. -
getMergeInstance
Returns an instance optimized for merging. This instance may only be consumed in the thread that calledgetMergeInstance()
.The default implementation returns
this
-