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, seekCeil
protected FilteredTermsEnum.AcceptStatus accept(BytesRef term)
FilteredTermsEnum
accept
in class FilteredTermsEnum
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.