Interface TableMacro

All Superinterfaces:
Function
All Known Implementing Classes:
MaterializedViewTable.MaterializedViewTableMacro, MockCatalogReader.MockModifiableViewRelOptTable.MockViewTableMacro, Smalls.SimpleTableMacro, TableMacroImpl, ViewTableMacro

public interface TableMacro extends Function
Function that returns a Table.

As the name "macro" implies, this is invoked at "compile time", that is, during query preparation. Compile-time expansion of table expressions allows for some very powerful query-optimizations.

  • Method Summary

    Modifier and Type
    Method
    Description
    apply(List<? extends @Nullable Object> arguments)
    Applies arguments to yield a table.

    Methods inherited from interface org.apache.calcite.schema.Function

    getParameters
  • Method Details

    • apply

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