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:
-
Method Summary
Modifier and TypeMethodDescriptionabstract TermVectorsReaderclone()Create a clone that one caller at a time may use to read term vectors.abstract Fieldsget(int doc) Returns term vectors for this document, or null if term vectors were not indexed.abstract longReturns approximate RAM bytes used
-
Method Details
-
get
Returns term vectors for this document, or null if term vectors were not indexed. If offsets are available they are in anOffsetAttributeavailable 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.
-