Package org.apache.lucene.codecs
Class TermVectorsReader
java.lang.Object
org.apache.lucene.codecs.TermVectorsReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
- Direct Known Subclasses:
CompressingTermVectorsReader
,Lucene40TermVectorsReader
Codec API for reading term vectors:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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.abstract long
Returns approximate RAM bytes used
-
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 theDocsAndPositionsEnum
.- Throws:
IOException
-
ramBytesUsed
public abstract long ramBytesUsed()Returns approximate RAM bytes used -
clone
Create a clone that one caller at a time may use to read term vectors.
-