Class TableMacroImpl

java.lang.Object
org.apache.calcite.schema.impl.ReflectiveFunctionBase
org.apache.calcite.schema.impl.TableMacroImpl
All Implemented Interfaces:
Function, TableMacro

public class TableMacroImpl extends ReflectiveFunctionBase implements TableMacro
Implementation of TableMacro based on a method.
  • Method Details

    • create

      public static @Nullable TableMacro create(Class<?> clazz)
      Creates a TableMacro from a class, looking for an "eval" method. Returns null if there is no such method.
    • create

      public static @Nullable TableMacro create(Method method)
      Creates a TableMacro from a method.
    • apply

      public TranslatableTable apply(List<? extends @Nullable Object> arguments)
      Applies arguments to yield a table.
      Specified by:
      apply in interface TableMacro
      Parameters:
      arguments - Arguments
      Returns:
      Table