Java Code Examples for org.apache.calcite.linq4j.tree.Types#lookupMethod()
The following examples show how to use
org.apache.calcite.linq4j.tree.Types#lookupMethod() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UdfTest.java From calcite with Apache License 2.0 | 5 votes |
@Override public CallImplementor getImplementor() { return (translator, call, nullAs) -> { Method lookupMethod = Types.lookupMethod(Smalls.AllTypesFunction.class, "arrayAppendFun", List.class, Integer.class); return Expressions.call(lookupMethod, translator.translateList(call.getOperands(), nullAs)); }; }
Example 2
Source File: KylinEnumerableUnion.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public KylinEnumerableUnion(RelOptCluster cluster, RelTraitSet traitSet, List<RelNode> inputs, boolean all) { super(cluster, traitSet, inputs, all); unionArray = Types.lookupMethod(ExtendedEnumerable.class, "union", Enumerable.class, EqualityComparer.class); arrayComparer = Types.lookupMethod(Functions.class, "arrayComparer"); }
Example 3
Source File: RexToJavaCompiler.java From samza with Apache License 2.0 | 4 votes |
/** * Defines a method. */ SamzaBuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this.method = Types.lookupMethod(clazz, methodName, argumentTypes); }
Example 4
Source File: RexNodeToJavaCodeCompiler.java From streamline with Apache License 2.0 | 4 votes |
/** * Defines a method. */ StreamlineBuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this(Types.lookupMethod(clazz, methodName, argumentTypes), null, null); }
Example 5
Source File: KylinEnumerableUnion.java From kylin with Apache License 2.0 | 4 votes |
public KylinEnumerableUnion(RelOptCluster cluster, RelTraitSet traitSet, List<RelNode> inputs, boolean all) { super(cluster, traitSet, inputs, all); unionArray = Types.lookupMethod(ExtendedEnumerable.class, "union", Enumerable.class, EqualityComparer.class); arrayComparer = Types.lookupMethod(Functions.class, "arrayComparer"); }