public class TableFunctionImpl extends ReflectiveFunctionBase implements TableFunction, ImplementableFunction
TableFunction based on a
method.ReflectiveFunctionBase.ParameterListBuildermethod, parameters| Modifier and Type | Method and Description |
|---|---|
static @Nullable TableFunction |
create(Class<?> clazz)
Creates a
TableFunctionImpl from a class, looking for an "eval"
method. |
static @Nullable TableFunction |
create(Class<?> clazz,
String methodName)
Creates a
TableFunctionImpl from a class, looking for a method
with a given name. |
static @Nullable TableFunction |
create(Method method)
Creates a
TableFunctionImpl from a method. |
Type |
getElementType(List<? extends Object> arguments)
Returns the row type of the table yielded by this function when
applied to given arguments.
|
CallImplementor |
getImplementor()
Returns implementor that translates the function to linq4j expression.
|
RelDataType |
getRowType(RelDataTypeFactory typeFactory,
List<? extends Object> arguments)
Returns the record type of the table yielded by this function when
applied to given arguments.
|
builder, getParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterspublic static @Nullable TableFunction create(Class<?> clazz)
TableFunctionImpl from a class, looking for an "eval"
method. Returns null if there is no such method.public static @Nullable TableFunction create(Class<?> clazz, String methodName)
TableFunctionImpl from a class, looking for a method
with a given name. Returns null if there is no such method.public static @Nullable TableFunction create(Method method)
TableFunctionImpl from a method.public RelDataType getRowType(RelDataTypeFactory typeFactory, List<? extends Object> arguments)
TableFunctiongetRowType in interface TableFunctiontypeFactory - Type factoryarguments - arguments of a function call (only literal arguments
are passed, nulls for non-literal ones)public Type getElementType(List<? extends Object> arguments)
TableFunctiongetElementType in interface TableFunctionarguments - arguments of a function call (only literal arguments
are passed, nulls for non-literal ones)Object[].class)public CallImplementor getImplementor()
ImplementableFunctiongetImplementor in interface ImplementableFunctionCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.