Class SlowCompositeCodecReaderWrapper.SlowCompositeTermVectorsReaderWrapper

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Cloneable
    Enclosing class:
    SlowCompositeCodecReaderWrapper

    private class SlowCompositeCodecReaderWrapper.SlowCompositeTermVectorsReaderWrapper
    extends TermVectorsReader
    • Field Detail

      • docStarts

        private final int[] docStarts
    • Constructor Detail

      • SlowCompositeTermVectorsReaderWrapper

        SlowCompositeTermVectorsReaderWrapper​(TermVectorsReader[] readers,
                                              int[] docStarts)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • checkIntegrity

        public void checkIntegrity()
                            throws java.io.IOException
        Description copied from class: TermVectorsReader
        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.

        Specified by:
        checkIntegrity in class TermVectorsReader
        Throws:
        java.io.IOException
      • get

        public Fields get​(int doc)
                   throws java.io.IOException
        Description copied from class: TermVectors
        Returns term vectors for this document, or null if term vectors were not indexed.

        The returned Fields instance acts like a single-document inverted index (the docID will be 0). If offsets are available they are in an OffsetAttribute available from the PostingsEnum.

        Specified by:
        get in class TermVectors
        Throws:
        java.io.IOException