public static class TermFreqIterator.TermFreqIteratorWrapper extends Object implements TermFreqIterator
1
TermFreqIterator.TermFreqIteratorWrapper
EMPTY
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()
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.