public SqlMonotonicity getMonotonicity(SqlNode expr) { return parent.getMonotonicity(expr); }
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { SqlNode node = (SqlNode) call.operands[0]; return scope.getMonotonicity(node); } }
for (SqlNode groupItem : groupList) { bb.columnMonotonicities.add( bb.scope.getMonotonicity(groupItem)); for (SqlNode selectItem : selectList) { bb.columnMonotonicities.add( bb.scope.getMonotonicity(selectItem));
public SqlMonotonicity getMonotonicity(SqlNode expr) { return parent.getMonotonicity(expr); }
public SqlMonotonicity getMonotonicity(SqlCall call, SqlValidatorScope scope) { return scope.getMonotonicity(call.operand(0)); } }
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { // Monotonic iff its first argument is, but not strict. SqlNode node = (SqlNode) call.operands[0]; return scope.getMonotonicity(node).unstrict(); } }
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { SqlNode node = (SqlNode) call.operands[0]; return scope.getMonotonicity(node).unstrict(); } }
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { return scope.getMonotonicity(call.operand(0)).unstrict(); } }
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { // Monotonic iff its first argument is, but not strict. return scope.getMonotonicity(call.operand(0)).unstrict(); } }
/** * This method retrieves the list of columns for the current table then * walks through the list looking for a column that is monotonic (sorted) */ static boolean isTableSorted(SqlValidatorScope scope) { List<SqlMoniker> columnNames = new ArrayList<SqlMoniker>(); // REVIEW: jhyde, 2007/11/7: This is the only use of // findAllColumnNames. Find a better way to detect monotonicity, then // remove that method. scope.findAllColumnNames(columnNames); for (SqlMoniker columnName : columnNames) { SqlIdentifier columnId = columnName.toIdentifier(); final SqlMonotonicity monotonicity = scope.getMonotonicity(columnId); if (monotonicity != SqlMonotonicity.NOT_MONOTONIC) { return true; } } return false; }
/** * This method retrieves the list of columns for the current table then * walks through the list looking for a column that is monotonic (sorted) */ private static boolean isTableSorted(SqlValidatorScope scope) { List<SqlMoniker> columnNames = new ArrayList<SqlMoniker>(); // REVIEW: jhyde, 2007/11/7: This is the only use of // findAllColumnNames. Find a better way to detect monotonicity, then // remove that method. scope.findAllColumnNames(columnNames); for (SqlMoniker columnName : columnNames) { SqlIdentifier columnId = columnName.toIdentifier(); final SqlMonotonicity monotonicity = scope.getMonotonicity(columnId); if (monotonicity != SqlMonotonicity.NotMonotonic) { return true; } } return false; }
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { if (getName().equals("-")) { return scope.getMonotonicity(call.operand(0)).reverse(); } return super.getMonotonicity(call, scope); }
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { if (getName().equals("-")) { return scope.getMonotonicity(call.getOperands()[0]).reverse(); } return super.getMonotonicity(call, scope); } }
public SqlMonotonicity getMonotonicity(String columnName) { final RelDataType rowType = this.getRowTypeSansSystemColumns(); final int field = SqlTypeUtil.findField(rowType, columnName); final SqlNode selectItem = validator.getRawSelectScope(select) .getExpandedSelectList().get(field); return validator.getSelectScope(select).getMonotonicity(selectItem); } }
public SqlMonotonicity getMonotonicity(String columnName) { final RelDataType rowType = this.getRowTypeSansSystemColumns(); final int field = SqlTypeUtil.findField(rowType, columnName); final SqlNode selectItem = validator.getRawSelectScope(select) .getExpandedSelectList().get(field); return validator.getSelectScope(select).getMonotonicity(selectItem); } }
SqlValidatorScope scope) final SqlMonotonicity mono0 = scope.getMonotonicity(call.operands[0]); final SqlMonotonicity mono1 = scope.getMonotonicity(call.operands[1]);
public SqlMonotonicity getMonotonicity( SqlCall call, SqlValidatorScope scope) { final SqlMonotonicity mono0 = scope.getMonotonicity(call.operand(0)); final SqlMonotonicity mono1 = scope.getMonotonicity(call.operand(1));
for (SqlNode groupItem : groupList) { bb.columnMonotonicities.add( bb.scope.getMonotonicity(groupItem)); for (SqlNode selectItem : selectList) { bb.columnMonotonicities.add( bb.scope.getMonotonicity(selectItem));
for (SqlNode groupItem : groupList) { bb.columnMonotonicities.add( bb.scope.getMonotonicity(groupItem)); for (SqlNode selectItem : selectList) { bb.columnMonotonicities.add( bb.scope.getMonotonicity(selectItem));