Class SortedTermFreqIteratorWrapper

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

    public class SortedTermFreqIteratorWrapper
    extends Object
    implements TermFreqIterator
    This wrapper buffers incoming elements and makes sure they are sorted based on given comparator.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • 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
      • encode

        protected void encode​(Sort.ByteSequencesWriter writer,
                              org.apache.lucene.store.ByteArrayDataOutput output,
                              byte[] buffer,
                              org.apache.lucene.util.BytesRef spare,
                              long weight)
                       throws IOException
        Throws:
        IOException
      • decode

        protected long decode​(org.apache.lucene.util.BytesRef scratch,
                              org.apache.lucene.store.ByteArrayDataInput tmpInput)