public static class TermFreqIterator.TermFreqIteratorWrapper extends Object implements TermFreqIterator
1TermFreqIterator.TermFreqIteratorWrapperEMPTY| Constructor and Description |
|---|
TermFreqIterator.TermFreqIteratorWrapper(BytesRefIterator wrapped)
Creates a new wrapper, wrapping the specified iterator and
specifying a weight value of
1 for all terms. |
| Modifier and Type | Method and Description |
|---|---|
Comparator<BytesRef> |
getComparator() |
BytesRef |
next() |
long |
weight()
A term's weight, higher numbers mean better suggestions.
|
public TermFreqIterator.TermFreqIteratorWrapper(BytesRefIterator wrapped)
1 for all terms.public 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.