Class TermVectorsReader

    • Constructor Detail

      • TermVectorsReader

        protected TermVectorsReader()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • 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 PostingsEnum.
        Throws:
        java.io.IOException
      • checkIntegrity

        public abstract void checkIntegrity()
                                     throws java.io.IOException
        Checks consistency of this reader.

        Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.

        Throws:
        java.io.IOException
      • clone

        public abstract TermVectorsReader clone()
        Create a clone that one caller at a time may use to read term vectors.
        Overrides:
        clone in class java.lang.Object
      • getMergeInstance

        public TermVectorsReader getMergeInstance()
        Returns an instance optimized for merging. This instance may only be consumed in the thread that called getMergeInstance().

        The default implementation returns this