Tries to convert the specified expression into a range expression. @param cc compilation context @param info input info (can be null) @param expr expression to be compared @param min minimum position @param max minimum position (inclusive) @return expression @throws QueryException query exce
(final CompileContext cc, final InputInfo info, final Expr expr,
final double min, final double max)
| 66 | * @throws QueryException query exception |
| 67 | */ |
| 68 | static Expr get(final CompileContext cc, final InputInfo info, final Expr expr, |
| 69 | final double min, final double max) throws QueryException { |
| 70 | return min > max ? Bln.FALSE : min == NEGATIVE_INFINITY && max == POSITIVE_INFINITY ? |
| 71 | cc.function(Function.EXISTS, info, expr) : |
| 72 | new CmpR(expr, min, max, info).optimize(cc); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Tries to convert the specified expression into a range expression. |