public SqlOperandCountRange get(int index) { return allowedRules.get(index).getOperandCountRange(); }
public SqlOperandCountRange get(int index) { return allowedRules.get(index).getOperandCountRange(); }
/** * Returns a constraint on the number of operands expected by this operator. * Subclasses may override this method; when they don't, the range is * derived from the {@link SqlOperandTypeChecker} associated with this * operator. * * @return acceptable range */ public SqlOperandCountRange getOperandCountRange() { if (operandTypeChecker != null) { return operandTypeChecker.getOperandCountRange(); } // If you see this error you need to override this method // or give operandTypeChecker a value. throw Util.needToImplement(this); }
/** * Returns a constraint on the number of operands expected by this operator. * Subclasses may override this method; when they don't, the range is * derived from the {@link SqlOperandTypeChecker} associated with this * operator. * * @return acceptable range */ public SqlOperandCountRange getOperandCountRange() { if (operandTypeChecker != null) { return operandTypeChecker.getOperandCountRange(); } // If you see this error you need to override this method // or give operandTypeChecker a value. throw Util.needToImplement(this); }
if (op.getOperandTypeChecker().getOperandCountRange().isValidCount(nArgs - 1)) { newFunction = (SqlFunction) op; break;
if (op.getOperandTypeChecker().getOperandCountRange().isValidCount(nArgs - 1)) { newFunction = (SqlFunction) op; break;
typeChecker.getOperandCountRange(); for (int n = range.getMin(), max = range.getMax(); n <= max; n++) { final List<List<ValueType>> argValues =
typeChecker.getOperandCountRange(); for (int n = range.getMin(), max = range.getMax(); n <= max; n++) { final List<List<ValueType>> argValues =