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
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, docs, docsAndPositions, getComparator, next, nextSeekTerm, ord, seekCeil, seekExact, seekExact, seekExact, setInitialSeekTerm, term, termState, totalTermFreq
docs, docsAndPositions
protected FilteredTermsEnum.AcceptStatus accept(BytesRef term)
FilteredTermsEnum
accept
in class FilteredTermsEnum
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.