Package org.apache.lucene.codecs
Class TermVectorsReader
- java.lang.Object
-
- org.apache.lucene.codecs.TermVectorsReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
- Direct Known Subclasses:
CompressingTermVectorsReader
,Lucene40TermVectorsReader
public abstract class TermVectorsReader extends java.lang.Object implements java.lang.Cloneable, java.io.Closeable
Codec API for reading term vectors:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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
ramBytesUsed()
Returns approximate RAM bytes used
-
-
-
Method Detail
-
get
public abstract Fields get(int doc) throws java.io.IOException
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:
java.io.IOException
-
ramBytesUsed
public abstract long ramBytesUsed()
Returns approximate RAM bytes used
-
clone
public abstract TermVectorsReader clone()
Create a clone that one caller at a time may use to read term vectors.
-
-