Class InstantiatedTermDocs

    • Method Detail

      • seek

        public void seek​(org.apache.lucene.index.Term term)
        Specified by:
        seek in interface org.apache.lucene.index.TermDocs
      • seek

        public void seek​(org.apache.lucene.index.TermEnum termEnum)
        Specified by:
        seek in interface org.apache.lucene.index.TermDocs
      • doc

        public int doc()
        Specified by:
        doc in interface org.apache.lucene.index.TermDocs
      • freq

        public int freq()
        Specified by:
        freq in interface org.apache.lucene.index.TermDocs
      • next

        public boolean next()
        Specified by:
        next in interface org.apache.lucene.index.TermDocs
      • read

        public int read​(int[] docs,
                        int[] freqs)
        Specified by:
        read in interface org.apache.lucene.index.TermDocs
      • skipTo

        public boolean skipTo​(int target)
        Skips entries to the first beyond the current whose document number is greater than or equal to target.

        Returns true if there is such an entry.

        Behaves as if written:

           boolean skipTo(int target) {
             do {
               if (!next())
                     return false;
             } while (target > doc());
             return true;
           }
         
        This implementation is considerably more efficient than that.
        Specified by:
        skipTo in interface org.apache.lucene.index.TermDocs
      • close

        public void close()
        Does nothing
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.apache.lucene.index.TermDocs