/** * Returns function that implements given operator call. * @return function that implements given operator call */ public TableFunction getFunction() { return (TableFunction) super.getFunction(); }
/** * Returns function that implements given operator call. * @return function that implements given operator call */ public TableFunction getFunction() { return (TableFunction) super.getFunction(); }
public CallImplementor get(final SqlOperator operator) { if (operator instanceof SqlUserDefinedFunction) { org.apache.calcite.schema.Function udf = ((SqlUserDefinedFunction) operator).getFunction(); if (!(udf instanceof ImplementableFunction)) { throw new IllegalStateException("User defined function " + operator + " must implement ImplementableFunction"); } return ((ImplementableFunction) udf).getImplementor(); } return map.get(operator); }
public CallImplementor get(final SqlOperator operator) { if (operator instanceof SqlUserDefinedFunction) { org.apache.calcite.schema.Function udf = ((SqlUserDefinedFunction) operator).getFunction(); if (!(udf instanceof ImplementableFunction)) { throw new IllegalStateException("User defined function " + operator + " must implement ImplementableFunction"); } return ((ImplementableFunction) udf).getImplementor(); } return map.get(operator); }