Class TermVectorsReader

java.lang.Object
org.apache.lucene.codecs.TermVectorsReader
All Implemented Interfaces:
Closeable, AutoCloseable, Cloneable
Direct Known Subclasses:
CompressingTermVectorsReader, Lucene40TermVectorsReader

public abstract class TermVectorsReader extends Object implements Cloneable, Closeable
Codec API for reading term vectors:
  • Constructor Details

    • TermVectorsReader

      protected TermVectorsReader()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details

    • get

      public abstract Fields get(int doc) throws IOException
      Returns term vectors for this document, or null if term vectors were not indexed. If offsets are available they are in an OffsetAttribute available from the DocsAndPositionsEnum.
      Throws:
      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.
      Overrides:
      clone in class Object