Package org.apache.lucene.index
Class SingleTermsEnum
- java.lang.Object
-
- org.apache.lucene.index.TermsEnum
-
- org.apache.lucene.index.FilteredTermsEnum
-
- org.apache.lucene.index.SingleTermsEnum
-
- All Implemented Interfaces:
BytesRefIterator
public final class SingleTermsEnum extends FilteredTermsEnum
Subclass of FilteredTermsEnum for enumerating a single term.For example, this can be used by
MultiTermQuery
s that need only visit one term, but want to preserve MultiTermQuery semantics such asMultiTermQuery.getRewriteMethod()
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus
-
-
Constructor Summary
Constructors Constructor Description SingleTermsEnum(TermsEnum tenum, BytesRef termText)
Creates a newSingleTermsEnum
.
-
Method Summary
-
Methods inherited from class org.apache.lucene.index.FilteredTermsEnum
attributes, docFreq, docs, docsAndPositions, getComparator, next, ord, seekCeil, seekExact, seekExact, seekExact, term, termState, totalTermFreq
-
Methods inherited from class org.apache.lucene.index.TermsEnum
docs, docsAndPositions
-
-