Class Lucene40TermVectorsReader
java.lang.Object
org.apache.lucene.codecs.TermVectorsReader
org.apache.lucene.codecs.lucene40.Lucene40TermVectorsReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
Lucene 4.0 Term Vectors reader.
It reads .tvd, .tvf, and .tvx files.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLucene40TermVectorsReader(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context) Sole constructor. -
Method Summary
-
Constructor Details
-
Lucene40TermVectorsReader
public Lucene40TermVectorsReader(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context) throws IOException Sole constructor.- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
get
Description copied from class:TermVectorsReaderReturns term vectors for this document, or null if term vectors were not indexed. If offsets are available they are in anOffsetAttributeavailable from theDocsAndPositionsEnum.- Specified by:
getin classTermVectorsReader- Throws:
IOException
-
clone
Description copied from class:TermVectorsReaderCreate a clone that one caller at a time may use to read term vectors.- Specified by:
clonein classTermVectorsReader
-
ramBytesUsed
public long ramBytesUsed()Description copied from class:TermVectorsReaderReturns approximate RAM bytes used- Specified by:
ramBytesUsedin classTermVectorsReader
-