public final class SingleTermsEnum extends FilteredTermsEnum
For example, this can be used by MultiTermQuery
s
that need only visit one term, but want to preserve
MultiTermQuery semantics such as MultiTermQuery.getRewriteMethod()
.
FilteredTermsEnum.AcceptStatus
TermsEnum.SeekStatus
actualTerm, tenum
Constructor and Description |
---|
SingleTermsEnum(TermsEnum tenum,
BytesRef termText)
Creates a new
SingleTermsEnum . |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
accept(BytesRef term)
Return if term is accepted, not accepted or the iteration should ended
(and possibly seek).
|
attributes, docFreq, impacts, next, nextSeekTerm, ord, postings, seekCeil, seekExact, seekExact, seekExact, setInitialSeekTerm, term, termState, totalTermFreq
protected FilteredTermsEnum.AcceptStatus accept(BytesRef term)
FilteredTermsEnum
accept
in class FilteredTermsEnum
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.