Package 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.lucene.search.spell.TermFreqIterator
TermFreqIterator.TermFreqIteratorWrapper
-
-
Field Summary
Fields Modifier and Type Field Description protected int
curPos
protected BytesRefList
entries
protected long[]
freqs
-
Constructor Summary
Constructors Constructor Description BufferingTermFreqIteratorWrapper(TermFreqIterator source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<org.apache.lucene.util.BytesRef>
getComparator()
org.apache.lucene.util.BytesRef
next()
long
weight()
-
-
-
Field Detail
-
entries
protected BytesRefList entries
-
curPos
protected int curPos
-
freqs
protected long[] freqs
-
-
Constructor Detail
-
BufferingTermFreqIteratorWrapper
public BufferingTermFreqIteratorWrapper(TermFreqIterator source) throws IOException
- Throws:
IOException
-
-
Method Detail
-
weight
public long weight()
- Specified by:
weight
in interfaceTermFreqIterator
-
next
public org.apache.lucene.util.BytesRef next() throws IOException
- Specified by:
next
in interfaceorg.apache.lucene.util.BytesRefIterator
- Throws:
IOException
-
getComparator
public Comparator<org.apache.lucene.util.BytesRef> getComparator()
- Specified by:
getComparator
in interfaceorg.apache.lucene.util.BytesRefIterator
-
-