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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
org.apache.calcite.schema.Schema.TableType
org.apache.calcite.rel.type.RelDataType
getRowType
(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) org.apache.calcite.schema.Statistic
int
hashCode()
boolean
isRolledUp
(String column) boolean
rolledUpColumnValidInsideAgg
(String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config) org.apache.calcite.rel.RelNode
toRel
(org.apache.calcite.plan.RelOptTable.ToRelContext context, org.apache.calcite.plan.RelOptTable table) toString()
-
Constructor Details
-
DrillTranslatableTable
-
-
Method Details
-
getDrillTable
-
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) - Specified by:
getRowType
in interfaceorg.apache.calcite.schema.Table
-
getStatistic
public org.apache.calcite.schema.Statistic getStatistic()- Specified by:
getStatistic
in interfaceorg.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 interfaceorg.apache.calcite.schema.TranslatableTable
-
getJdbcTableType
public org.apache.calcite.schema.Schema.TableType getJdbcTableType()- Specified by:
getJdbcTableType
in interfaceorg.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 interfaceorg.apache.calcite.schema.Table
-
isRolledUp
- Specified by:
isRolledUp
in interfaceorg.apache.calcite.schema.Table
-
hashCode
public int hashCode() -
equals
-
toString
-