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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.calcite.schema.Schema.TableTypeorg.apache.calcite.rel.type.RelDataTypegetRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) org.apache.calcite.schema.StatisticinthashCode()booleanisRolledUp(String column) booleanrolledUpColumnValidInsideAgg(String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config) org.apache.calcite.rel.RelNodetoRel(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:
getRowTypein interfaceorg.apache.calcite.schema.Table
-
getStatistic
public org.apache.calcite.schema.Statistic getStatistic()- Specified by:
getStatisticin 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:
toRelin interfaceorg.apache.calcite.schema.TranslatableTable
-
getJdbcTableType
public org.apache.calcite.schema.Schema.TableType getJdbcTableType()- Specified by:
getJdbcTableTypein 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:
rolledUpColumnValidInsideAggin interfaceorg.apache.calcite.schema.Table
-
isRolledUp
- Specified by:
isRolledUpin interfaceorg.apache.calcite.schema.Table
-
hashCode
public int hashCode() -
equals
-
toString
-