7 #ifndef NUMERICRANGEQUERY_H
8 #define NUMERICRANGEQUERY_H
111 NumericRangeQuery(
const String& field, int32_t precisionStep, int32_t valSize, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
129 static NumericRangeQueryPtr newLongRange(
const String& field, int32_t precisionStep, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
133 static NumericRangeQueryPtr newLongRange(
const String& field, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
136 static NumericRangeQueryPtr newIntRange(
const String& field, int32_t precisionStep, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
140 static NumericRangeQueryPtr newIntRange(
const String& field, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
143 static NumericRangeQueryPtr newDoubleRange(
const String& field, int32_t precisionStep,
double min,
double max,
bool minInclusive,
bool maxInclusive);
147 static NumericRangeQueryPtr newDoubleRange(
const String& field,
double min,
double max,
bool minInclusive,
bool maxInclusive);
153 static NumericRangeQueryPtr newNumericRange(
const String& field, int32_t precisionStep, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
160 static NumericRangeQueryPtr newNumericRange(
const String& field, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
172 NumericValue getMin();
175 NumericValue getMax();
178 virtual String toString(
const String& field);
180 virtual int32_t hashCode();
185 friend class NumericRangeTermEnum;