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 SummaryNested classes/interfaces inherited from class org.apache.lucene.index.FilteredTermsEnumFilteredTermsEnum.AcceptStatusNested classes/interfaces inherited from class org.apache.lucene.index.TermsEnumTermsEnum.SeekStatus
- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionSingleTermsEnum(TermsEnum tenum, BytesRef termText) Creates a newSingleTermsEnum.
- 
Method SummaryModifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatusReturn if term is accepted, not accepted or the iteration should ended (and possibly seek).Methods inherited from class org.apache.lucene.index.FilteredTermsEnumattributes, docFreq, docs, docsAndPositions, getComparator, next, nextSeekTerm, ord, seekCeil, seekExact, seekExact, seekExact, setInitialSeekTerm, term, termState, totalTermFreqMethods inherited from class org.apache.lucene.index.TermsEnumdocs, docsAndPositions
- 
Constructor Details- 
SingleTermsEnumCreates a newSingleTermsEnum.After calling the constructor the enumeration is already pointing to the term, if it exists. 
 
- 
- 
Method Details- 
acceptDescription copied from class:FilteredTermsEnumReturn if term is accepted, not accepted or the iteration should ended (and possibly seek).- Specified by:
- acceptin class- FilteredTermsEnum
 
 
-