Class 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • 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 an OffsetAttribute available from the DocsAndPositionsEnum.
        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.