Class TermFreqIterator.TermFreqIteratorWrapper

  • All Implemented Interfaces:
    TermFreqIterator, org.apache.lucene.util.BytesRefIterator
    Enclosing interface:
    TermFreqIterator

    public static class TermFreqIterator.TermFreqIteratorWrapper
    extends Object
    implements TermFreqIterator
    Wraps a BytesRefIterator as a TermFreqIterator, with all weights set to 1
    • Constructor Detail

      • TermFreqIteratorWrapper

        public TermFreqIteratorWrapper​(org.apache.lucene.util.BytesRefIterator wrapped)
    • Method Detail

      • next

        public org.apache.lucene.util.BytesRef next()
                                             throws IOException
        Specified by:
        next in interface org.apache.lucene.util.BytesRefIterator
        Throws:
        IOException
      • getComparator

        public Comparator<org.apache.lucene.util.BytesRef> getComparator()
        Specified by:
        getComparator in interface org.apache.lucene.util.BytesRefIterator