Package org.apache.lucene.search.spell
Class TermFreqIterator.TermFreqIteratorWrapper
- java.lang.Object
-
- org.apache.lucene.search.spell.TermFreqIterator.TermFreqIteratorWrapper
-
- All Implemented Interfaces:
TermFreqIterator
,org.apache.lucene.util.BytesRefIterator
- Enclosing interface:
- TermFreqIterator
public static class TermFreqIterator.TermFreqIteratorWrapper extends Object implements TermFreqIterator
Wraps a BytesRefIterator as a TermFreqIterator, with all weights set to1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.lucene.search.spell.TermFreqIterator
TermFreqIterator.TermFreqIteratorWrapper
-
-
Constructor Summary
Constructors Constructor Description TermFreqIteratorWrapper(org.apache.lucene.util.BytesRefIterator wrapped)
-
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()
-
-
-
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
-
-