public class TableFunctionImpl extends ReflectiveFunctionBase implements TableFunction, ImplementableFunction
TableFunction based on a
method.method, parameters| Modifier and Type | Method and Description |
|---|---|
static TableFunction |
create(Class<?> clazz)
Creates a
TableFunctionImpl from a class, looking for an "eval"
method. |
static TableFunction |
create(Method method)
Creates a
TableFunctionImpl from a method. |
Type |
getElementType(List<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<Object> arguments)
Returns the record type of the table yielded by this function when
applied to given arguments.
|
getParameters, toFunctionParameters, toFunctionParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterspublic static TableFunction create(Class<?> clazz)
TableFunctionImpl from a class, looking for an "eval"
method. Returns null if there is no such method.public static TableFunction create(Method method)
TableFunctionImpl from a method.public RelDataType getRowType(RelDataTypeFactory typeFactory, List<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<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–2015 The Apache Software Foundation. All rights reserved.