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
MultiTermQuerys 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.FilteredTermsEnum
FilteredTermsEnum.AcceptStatus
-
Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.index.FilteredTermsEnum
actualTerm, tenum
-
-
Constructor Summary
Constructors Constructor Description SingleTermsEnum(TermsEnum tenum, BytesRef termText)Creates a newSingleTermsEnum.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FilteredTermsEnum.AcceptStatusaccept(BytesRef term)Return if term is accepted, not accepted or the iteration should ended (and possibly seek).-
Methods inherited from class org.apache.lucene.index.FilteredTermsEnum
attributes, docFreq, impacts, next, nextSeekTerm, ord, postings, seekCeil, seekExact, seekExact, seekExact, setInitialSeekTerm, term, termState, totalTermFreq
-
-
-
-
Method Detail
-
accept
protected FilteredTermsEnum.AcceptStatus accept(BytesRef term)
Description copied from class:FilteredTermsEnumReturn if term is accepted, not accepted or the iteration should ended (and possibly seek).- Specified by:
acceptin classFilteredTermsEnum
-
-