java.lang.Object
org.apache.lucene.index.TermsEnum
org.apache.lucene.index.FilteredTermsEnum
org.apache.lucene.search.TermInSetQuery.SetEnum
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
TermInSetQuery
Like a baby
AutomatonTermsEnum, ping-pong intersects the terms
dict against our encoded query terms.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.FilteredTermsEnum
FilteredTermsEnum.AcceptStatusNested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus -
Field Summary
FieldsFields inherited from class org.apache.lucene.index.FilteredTermsEnum
actualTerm, tenum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FilteredTermsEnum.AcceptStatusReturn if term is accepted, not accepted or the iteration should ended (and possibly seek).protected BytesRefnextSeekTerm(BytesRef currentTerm) On the first call toFilteredTermsEnum.next()or ifFilteredTermsEnum.accept(org.apache.lucene.util.BytesRef)returnsFilteredTermsEnum.AcceptStatus.YES_AND_SEEKorFilteredTermsEnum.AcceptStatus.NO_AND_SEEK, this method will be called to eventually seek the underlying TermsEnum to a new position.Methods inherited from class org.apache.lucene.index.FilteredTermsEnum
attributes, docFreq, impacts, next, ord, postings, seekCeil, seekExact, seekExact, seekExact, setInitialSeekTerm, term, termState, totalTermFreq
-
Field Details
-
iterator
-
seekTerm
-
-
Constructor Details
-
SetEnum
SetEnum(TermsEnum termsEnum)
-
-
Method Details
-
accept
Description copied from class:FilteredTermsEnumReturn if term is accepted, not accepted or the iteration should ended (and possibly seek).- Specified by:
acceptin classFilteredTermsEnum- Throws:
IOException
-
nextSeekTerm
Description copied from class:FilteredTermsEnumOn the first call toFilteredTermsEnum.next()or ifFilteredTermsEnum.accept(org.apache.lucene.util.BytesRef)returnsFilteredTermsEnum.AcceptStatus.YES_AND_SEEKorFilteredTermsEnum.AcceptStatus.NO_AND_SEEK, this method will be called to eventually seek the underlying TermsEnum to a new position. On the first call,currentTermwill benull, later calls will provide the term the underlying enum is positioned at. This method returns per default only one time the initial seek term and thennull, so no repositioning is ever done.Override this method, if you want a more sophisticated TermsEnum, that repositions the iterator during enumeration. If this method always returns
nullthe enum is empty.Please note: This method should always provide a greater term than the last enumerated term, else the behaviour of this enum violates the contract for TermsEnums.
- Overrides:
nextSeekTermin classFilteredTermsEnum- Throws:
IOException
-