Class DrillTranslatableTable

java.lang.Object
org.apache.drill.exec.planner.logical.DrillTranslatableTable
All Implemented Interfaces:
org.apache.calcite.schema.Table, org.apache.calcite.schema.TranslatableTable

public class DrillTranslatableTable extends Object implements org.apache.calcite.schema.TranslatableTable
TableMacros must return a TranslatableTable This class adapts the existing DrillTable to a TranslatableTable
  • Constructor Details

    • DrillTranslatableTable

      public DrillTranslatableTable(DrillTable drillTable)
  • Method Details

    • getDrillTable

      public DrillTable getDrillTable()
    • getRowType

      public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
      Specified by:
      getRowType in interface org.apache.calcite.schema.Table
    • getStatistic

      public org.apache.calcite.schema.Statistic getStatistic()
      Specified by:
      getStatistic in interface org.apache.calcite.schema.Table
    • toRel

      public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context, org.apache.calcite.plan.RelOptTable table)
      Specified by:
      toRel in interface org.apache.calcite.schema.TranslatableTable
    • getJdbcTableType

      public org.apache.calcite.schema.Schema.TableType getJdbcTableType()
      Specified by:
      getJdbcTableType in interface org.apache.calcite.schema.Table
    • rolledUpColumnValidInsideAgg

      public boolean rolledUpColumnValidInsideAgg(String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config)
      Specified by:
      rolledUpColumnValidInsideAgg in interface org.apache.calcite.schema.Table
    • isRolledUp

      public boolean isRolledUp(String column)
      Specified by:
      isRolledUp in interface org.apache.calcite.schema.Table
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object