public class RangePQuery extends ParseableQuery
| Modifier and Type | Class and Description |
|---|---|
static class |
RangePQuery.Type |
| Modifier and Type | Field and Description |
|---|---|
static LiteralExpression |
FIELD_ATTR_NAME |
static QName |
NUMERIC_RANGE_QUERY_QNAME |
static QName |
TERM_RANGE_QUERY_QNAME |
| Constructor and Description |
|---|
RangePQuery(String fieldName,
RangePQuery.Type type,
String lowerTerm,
String upperTerm,
boolean includeLower,
boolean includeUpper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
boolean |
equals(ParseableQuery other) |
String |
getFieldName() |
boolean |
getIncludeLower() |
boolean |
getincludeUpper() |
String |
getLowerTerm() |
RangePQuery.Type |
getType() |
String |
getUpperTerm() |
boolean |
intersect(RangePQuery other)
compute the intersection of this query with the other, and store the result in this query
|
String |
toQueryString(String field,
IndexConfiguration config) |
ElementConstructor |
toXmlNode(String field,
IndexConfiguration config) |
hashCode, isMatchAll, isSpanCompatible, toStringpublic static final LiteralExpression FIELD_ATTR_NAME
public static final QName TERM_RANGE_QUERY_QNAME
public static final QName NUMERIC_RANGE_QUERY_QNAME
public RangePQuery(String fieldName, RangePQuery.Type type, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper)
public String getFieldName()
public String getLowerTerm()
public String getUpperTerm()
public boolean getIncludeLower()
public boolean getincludeUpper()
public RangePQuery.Type getType()
public ElementConstructor toXmlNode(String field, IndexConfiguration config)
toXmlNode in class ParseableQueryfield - the prevailing field in the query's surrounding context.config - the index configurationpublic String toQueryString(String field, IndexConfiguration config)
toQueryString in class ParseableQueryfield - the prevailing field in the query's surrounding context.config - the index configurationpublic boolean intersect(RangePQuery other)
other - another RangeQuerypublic boolean equals(ParseableQuery other)
equals in class ParseableQueryCopyright © 2013. All Rights Reserved.