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.
|Constructor and Description|
Enumerates all terms greater/equal than
|Modifier and Type||Method and Description|
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
public TermRangeTermsEnum(TermsEnum tenum, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper)
lowerTermbut 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 filter
lowerTerm- The term text at the lower end of the range
upperTerm- The term text at the upper end of the range
includeLower- If true, the
lowerTermis included in the range.
includeUpper- If true, the
upperTermis included in the range.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.