Package redis.clients.jedis.search
Class Query.NumericFilter
java.lang.Object
redis.clients.jedis.search.Query.Filter
redis.clients.jedis.search.Query.NumericFilter
- All Implemented Interfaces:
IParams
- Enclosing class:
Query
NumericFilter wraps a range filter on a numeric field. It can be inclusive or exclusive
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final doubleprivate final doubleFields inherited from class redis.clients.jedis.search.Query.Filter
property -
Constructor Summary
ConstructorsConstructorDescriptionNumericFilter(String property, double min, boolean exclusiveMin, double max, boolean exclusiveMax) NumericFilter(String property, double min, double max) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParams(CommandArguments args) private byte[]formatNum(double num, boolean exclude)
-
Field Details
-
min
private final double min -
exclusiveMin
private final boolean exclusiveMin -
max
private final double max -
exclusiveMax
private final boolean exclusiveMax
-
-
Constructor Details
-
NumericFilter
public NumericFilter(String property, double min, boolean exclusiveMin, double max, boolean exclusiveMax) -
NumericFilter
-
-
Method Details
-
formatNum
private byte[] formatNum(double num, boolean exclude) -
addParams
-