/** * Defines a method. */ StormBuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this(Types.lookupMethod(clazz, methodName, argumentTypes), null, null); }
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"); }
ElasticsearchMethod(Class clazz, String methodName, Class... argumentTypes) { this.method = Types.lookupMethod(clazz, methodName, argumentTypes); } }
/** * Defines a method. */ SamzaBuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this.method = Types.lookupMethod(clazz, methodName, argumentTypes); } }
/** * Defines a method. */ SamzaBuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this.method = Types.lookupMethod(clazz, methodName, argumentTypes); } }
/** * Defines a method. */ StreamlineBuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this(Types.lookupMethod(clazz, methodName, argumentTypes), null, null); }
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"); }
/** Defines a method. */ BuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this(Types.lookupMethod(clazz, methodName, argumentTypes), null, null); }
/** Defines a method. */ BuiltInMethod(Class clazz, String methodName, Class... argumentTypes) { this(Types.lookupMethod(clazz, methodName, argumentTypes), null, null); }
BuiltInMethod(Class<?> clazz, String methodName, Class<?>... argumentTypes) { this.method = Types.lookupMethod(clazz, methodName, argumentTypes); } }
/** * Creates a MethodCallExpression that represents a call to a * static method by calling the * appropriate factory method. */ public static MethodCallExpression call(Type type, String methodName, Iterable<? extends Expression> arguments) { Method method = Types.lookupMethod(Types.toClass(type), methodName, Types.toClassArray(arguments)); return new MethodCallExpression(method, null, toList(arguments)); }
@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)); }; } }
@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)); }; } }