/** * tests if current expression is an indexed function AND that function can also be executed without using the index * * @param target the query target * @param context the execution context * @param operator * @param right * * @return true if current expression is an indexed funciton AND that function can also be executed without using the index, false * otherwise */ public boolean canExecuteIndexedFunctionWithoutIndex(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) { if (mathExpression != null) { return mathExpression.canExecuteIndexedFunctionWithoutIndex(target, context, operator, right); } return false; }
/** * tests if current expression is an indexed funciton AND that function can also be executed without using the index * * @param target the query target * @param context the execution context * * @return true if current expression is an indexed funciton AND that function can also be executed without using the index, false * otherwise */ public boolean canExecuteIndexedFunctionWithoutIndex(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) { if (this.childExpressions.size() != 1) { return false; } return this.childExpressions.get(0).canExecuteIndexedFunctionWithoutIndex(target, context, operator, right); }