Class Lucene90CompressingTermVectorsReader
java.lang.Object
org.apache.lucene.codecs.TermVectorsReader
org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingTermVectorsReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorDescriptionLucene90CompressingTermVectorsReader
(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks consistency of this reader.clone()
Create a clone that one caller at a time may use to read term vectors.void
close()
get
(int doc) Returns term vectors for this document, or null if term vectors were not indexed.Returns an instance optimized for merging.toString()
-
Constructor Details
-
Lucene90CompressingTermVectorsReader
public Lucene90CompressingTermVectorsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException Sole constructor.- Throws:
IOException
-
-
Method Details
-
close
- Throws:
IOException
-
clone
Description copied from class:TermVectorsReader
Create a clone that one caller at a time may use to read term vectors.- Specified by:
clone
in classTermVectorsReader
-
getMergeInstance
Description copied from class:TermVectorsReader
Returns an instance optimized for merging. This instance may only be consumed in the thread that calledTermVectorsReader.getMergeInstance()
.The default implementation returns
this
- Overrides:
getMergeInstance
in classTermVectorsReader
-
get
Description copied from class:TermVectorsReader
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
.- Specified by:
get
in classTermVectorsReader
- Throws:
IOException
-
checkIntegrity
Description copied from class:TermVectorsReader
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.
- Specified by:
checkIntegrity
in classTermVectorsReader
- Throws:
IOException
-
toString
-