Class Lucene40TermVectorsReader
- java.lang.Object
-
- org.apache.lucene.codecs.TermVectorsReader
-
- org.apache.lucene.codecs.lucene40.Lucene40TermVectorsReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Cloneable
public class Lucene40TermVectorsReader extends TermVectorsReader implements java.io.Closeable
Lucene 4.0 Term Vectors reader.It reads .tvd, .tvf, and .tvx files.
- See Also:
Lucene40TermVectorsFormat
-
-
Constructor Summary
Constructors Constructor Description Lucene40TermVectorsReader(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context)Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermVectorsReaderclone()Create a clone that one caller at a time may use to read term vectors.voidclose()Fieldsget(int docID)Returns term vectors for this document, or null if term vectors were not indexed.longramBytesUsed()Returns approximate RAM bytes used
-
-
-
Constructor Detail
-
Lucene40TermVectorsReader
public Lucene40TermVectorsReader(Directory d, SegmentInfo si, FieldInfos fieldInfos, IOContext context) throws java.io.IOException
Sole constructor.- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
get
public Fields get(int docID) throws java.io.IOException
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:
java.io.IOException
-
clone
public TermVectorsReader 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
-
-