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
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 as MultiTermQuery.getRewriteMethod().
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSingleTermsEnum(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, totalTermFreqMethods inherited from class org.apache.lucene.index.TermsEnum
docs, docsAndPositions
-
Constructor Details
-
SingleTermsEnum
Creates a newSingleTermsEnum.After calling the constructor the enumeration is already pointing to the term, if it exists.
-