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
entries
public BufferingTermFreqIteratorWrapper(TermFreqIterator source) throws IOException
IOException
public long weight()
TermFreqIterator
weight
in interface TermFreqIterator
public BytesRef next() throws IOException
next
in interface BytesRefIterator
IOException
public Comparator<BytesRef> getComparator()
getComparator
in interface BytesRefIterator
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.