use of com.facebook.presto.metadata.FunctionListBuilder in project presto by prestodb.
the class AbstractTestFunctions method registerParametricScalar.
protected void registerParametricScalar(Class<?> clazz) {
Metadata metadata = functionAssertions.getMetadata();
List<SqlFunction> functions = new FunctionListBuilder().scalar(clazz).getFunctions();
metadata.getFunctionRegistry().addFunctions(functions);
}
use of com.facebook.presto.metadata.FunctionListBuilder in project presto by prestodb.
the class AbstractTestFunctions method registerScalar.
protected void registerScalar(Class<?> clazz) {
Metadata metadata = functionAssertions.getMetadata();
List<SqlFunction> functions = new FunctionListBuilder().scalars(clazz).getFunctions();
metadata.getFunctionRegistry().addFunctions(functions);
}
Aggregations