Package org.apache.calcite.schema.impl
Class TableFunctionImpl
java.lang.Object
org.apache.calcite.schema.impl.ReflectiveFunctionBase
org.apache.calcite.schema.impl.TableFunctionImpl
- All Implemented Interfaces:
- Function,- ImplementableFunction,- TableFunction
public class TableFunctionImpl
extends ReflectiveFunctionBase
implements TableFunction, ImplementableFunction
Implementation of 
TableFunction based on a
 method.- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBaseReflectiveFunctionBase.ParameterListBuilder
- 
Field SummaryFields inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBasemethod, parameters
- 
Method SummaryModifier and TypeMethodDescriptionstatic @Nullable TableFunctionCreates aTableFunctionImplfrom a class, looking for an "eval" method.static @Nullable TableFunctionCreates aTableFunctionImplfrom a class, looking for a method with a given name.static @Nullable TableFunctionCreates aTableFunctionImplfrom a method.getElementType(List<? extends @Nullable Object> arguments) Returns the row type of the table yielded by this function when applied to given arguments.Returns implementor that translates the function to linq4j expression.getRowType(RelDataTypeFactory typeFactory, List<? extends @Nullable Object> arguments) Returns the record type of the table yielded by this function when applied to given arguments.Methods inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBasebuilder, getParametersMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.FunctiongetParameters
- 
Method Details- 
createCreates aTableFunctionImplfrom a class, looking for an "eval" method. Returns null if there is no such method.
- 
createCreates aTableFunctionImplfrom a class, looking for a method with a given name. Returns null if there is no such method.
- 
createCreates aTableFunctionImplfrom a method.
- 
getRowTypepublic RelDataType getRowType(RelDataTypeFactory typeFactory, List<? extends @Nullable Object> arguments) Description copied from interface:TableFunctionReturns the record type of the table yielded by this function when applied to given arguments. Only literal arguments are passed, non-literal are replaced with default values (null, 0, false, etc).- Specified by:
- getRowTypein interface- TableFunction
- Parameters:
- typeFactory- Type factory
- arguments- arguments of a function call (only literal arguments are passed, nulls for non-literal ones)
- Returns:
- row type of the table
 
- 
getElementTypeDescription copied from interface:TableFunctionReturns the row type of the table yielded by this function when applied to given arguments. Only literal arguments are passed, non-literal are replaced with default values (null, 0, false, etc).- Specified by:
- getElementTypein interface- TableFunction
- Parameters:
- arguments- arguments of a function call (only literal arguments are passed, nulls for non-literal ones)
- Returns:
- element type of the table (e.g. Object[].class)
 
- 
getImplementorDescription copied from interface:ImplementableFunctionReturns implementor that translates the function to linq4j expression.- Specified by:
- getImplementorin interface- ImplementableFunction
- Returns:
- implementor that translates the function to linq4j expression.
 
 
-