Package org.apache.calcite.adapter.java
Class ReflectiveSchema.MethodTableMacro
- java.lang.Object
-
- org.apache.calcite.schema.impl.ReflectiveFunctionBase
-
- org.apache.calcite.adapter.java.ReflectiveSchema.MethodTableMacro
-
- All Implemented Interfaces:
Function
,TableMacro
- Enclosing class:
- ReflectiveSchema
private static class ReflectiveSchema.MethodTableMacro extends ReflectiveFunctionBase implements TableMacro
Table macro based on a Java method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBase
ReflectiveFunctionBase.ParameterListBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private ReflectiveSchema
schema
-
Fields inherited from class org.apache.calcite.schema.impl.ReflectiveFunctionBase
method, parameters
-
-
Constructor Summary
Constructors Constructor Description MethodTableMacro(ReflectiveSchema schema, java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslatableTable
apply(java.util.List<java.lang.Object> arguments)
Applies arguments to yield a table.java.lang.String
toString()
-
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, wait, wait, wait
-
Methods inherited from interface org.apache.calcite.schema.Function
getParameters
-
-
-
-
Field Detail
-
schema
private final ReflectiveSchema schema
-
-
Constructor Detail
-
MethodTableMacro
MethodTableMacro(ReflectiveSchema schema, java.lang.reflect.Method method)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
apply
public TranslatableTable apply(java.util.List<java.lang.Object> arguments)
Description copied from interface:TableMacro
Applies arguments to yield a table.- Specified by:
apply
in interfaceTableMacro
- Parameters:
arguments
- Arguments- Returns:
- Table
-
-