public class TermRangeTermsEnum extends FilteredTermsEnum
Term enumerations are always ordered by
FilteredTermsEnum.getComparator()
. Each term in the enumeration is
greater than all that precede it.
FilteredTermsEnum.AcceptStatus
TermsEnum.SeekStatus
Constructor and Description |
---|
TermRangeTermsEnum(TermsEnum tenum,
BytesRef lowerTerm,
BytesRef upperTerm,
boolean includeLower,
boolean includeUpper)
Enumerates all terms greater/equal than
lowerTerm
but less/equal than upperTerm . |
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
public TermRangeTermsEnum(TermsEnum tenum, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper)
lowerTerm
but less/equal than upperTerm
.
If an endpoint is null, it is said to be "open". Either or both
endpoints may be open. Open endpoints may not be exclusive
(you can't select all but the first or last term without
explicitly specifying the term to exclude.)tenum
- TermsEnum to filterlowerTerm
- The term text at the lower end of the rangeupperTerm
- The term text at the upper end of the rangeincludeLower
- If true, the lowerTerm
is included in the range.includeUpper
- If true, the upperTerm
is included in the range.protected FilteredTermsEnum.AcceptStatus accept(BytesRef term)
FilteredTermsEnum
accept
in class FilteredTermsEnum
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.