7 #ifndef NUMERICRANGEQUERY_H
8 #define NUMERICRANGEQUERY_H
110 NumericRangeQuery(
const String& field, int32_t precisionStep, int32_t valSize, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
128 static NumericRangeQueryPtr newLongRange(
const String& field, int32_t precisionStep, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
132 static NumericRangeQueryPtr newLongRange(
const String& field, int64_t min, int64_t max,
bool minInclusive,
bool maxInclusive);
135 static NumericRangeQueryPtr newIntRange(
const String& field, int32_t precisionStep, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
139 static NumericRangeQueryPtr newIntRange(
const String& field, int32_t min, int32_t max,
bool minInclusive,
bool maxInclusive);
142 static NumericRangeQueryPtr newDoubleRange(
const String& field, int32_t precisionStep,
double min,
double max,
bool minInclusive,
bool maxInclusive);
146 static NumericRangeQueryPtr newDoubleRange(
const String& field,
double min,
double max,
bool minInclusive,
bool maxInclusive);
152 static NumericRangeQueryPtr newNumericRange(
const String& field, int32_t precisionStep, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
159 static NumericRangeQueryPtr newNumericRange(
const String& field, NumericValue min, NumericValue max,
bool minInclusive,
bool maxInclusive);
171 NumericValue getMin();
174 NumericValue getMax();
177 virtual String toString(
const String& field);
179 virtual int32_t hashCode();
184 friend class NumericRangeTermEnum;