Package org.apache.calcite.schema.impl
Class TableMacroImpl
java.lang.Object
org.apache.calcite.schema.impl.ReflectiveFunctionBase
org.apache.calcite.schema.impl.TableMacroImpl
- All Implemented Interfaces:
Function
,TableMacro
Implementation of
TableMacro
based on a
method.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBase
ReflectiveFunctionBase.ParameterListBuilder
-
Field Summary
Fields inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBase
method, parameters
-
Method Summary
Modifier and TypeMethodDescriptionApplies arguments to yield a table.static @Nullable TableMacro
Creates aTableMacro
from a class, looking for an "eval" method.static @Nullable TableMacro
Creates aTableMacro
from a method.Methods inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBase
builder, getParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.schema.Function
getParameters
-
Method Details
-
create
Creates aTableMacro
from a class, looking for an "eval" method. Returns null if there is no such method. -
create
Creates aTableMacro
from a method. -
apply
Applies arguments to yield a table.- Specified by:
apply
in interfaceTableMacro
- Parameters:
arguments
- Arguments- Returns:
- Table
-