Optimizes an expression for positional access. Overwritten by Itr, Range, RangeSeq}. @param op comparison operator @param cc compilation context @return boolean result, optimized or original expression @throws QueryException query exception
(final CmpOp op, final CompileContext cc)
| 407 | * @throws QueryException query exception |
| 408 | */ |
| 409 | @SuppressWarnings("unused") |
| 410 | public Expr optimizePos(final CmpOp op, final CompileContext cc) throws QueryException { |
| 411 | return simplifyFor(Simplify.NUMBER, cc).simplifyFor(Simplify.DISTINCT, cc); |
| 412 | } |
| 413 | |
| 414 | /** |
| 415 | * Checks if an expression can be rewritten to an index access. |
no test coverage detected