org.apache.lucene.search.suggest
Class BufferingTermFreqIteratorWrapper
java.lang.Object
org.apache.lucene.search.suggest.BufferingTermFreqIteratorWrapper
- All Implemented Interfaces:
- TermFreqIterator, org.apache.lucene.util.BytesRefIterator
- Direct Known Subclasses:
- UnsortedTermFreqIteratorWrapper
public class BufferingTermFreqIteratorWrapper
- extends Object
- implements TermFreqIterator
This wrapper buffers incoming elements.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Fields inherited from interface org.apache.lucene.util.BytesRefIterator |
EMPTY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entries
protected BytesRefList entries
curPos
protected int curPos
freqs
protected long[] freqs
BufferingTermFreqIteratorWrapper
public BufferingTermFreqIteratorWrapper(TermFreqIterator source)
throws IOException
- Throws:
IOException
weight
public long weight()
- Specified by:
weight
in interface TermFreqIterator
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