public class BufferingTermFreqIteratorWrapper extends Object implements TermFreqIterator
TermFreqIterator.TermFreqIteratorWrapper| Modifier and Type | Field and Description |
|---|---|
protected int |
curPos
current buffer position
|
protected BytesRefArray |
entries
buffered term entries
|
protected long[] |
freqs
buffered weights, parallel with
entries |
EMPTY| Constructor and Description |
|---|
BufferingTermFreqIteratorWrapper(TermFreqIterator source)
Creates a new iterator, buffering entries from the specified iterator
|
| Modifier and Type | Method and Description |
|---|---|
Comparator<BytesRef> |
getComparator() |
BytesRef |
next() |
long |
weight()
A term's weight, higher numbers mean better suggestions.
|
protected BytesRefArray entries
protected int curPos
protected long[] freqs
entriespublic BufferingTermFreqIteratorWrapper(TermFreqIterator source) throws IOException
IOExceptionpublic long weight()
TermFreqIteratorweight in interface TermFreqIteratorpublic BytesRef next() throws IOException
next in interface BytesRefIteratorIOExceptionpublic Comparator<BytesRef> getComparator()
getComparator in interface BytesRefIteratorCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.