Class DrillViewTable
java.lang.Object
org.apache.drill.exec.planner.logical.DrillViewTable
- All Implemented Interfaces:
org.apache.calcite.schema.Table,org.apache.calcite.schema.TranslatableTable,DrillViewInfoProvider
- Direct Known Subclasses:
DrillHiveViewTable
public class DrillViewTable
extends Object
implements org.apache.calcite.schema.TranslatableTable, DrillViewInfoProvider
-
Constructor Summary
ConstructorsConstructorDescriptionDrillViewTable(View view, String viewOwner, ViewExpansionContext viewExpansionContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.calcite.rel.RelNodeexpandViewForImpersonatedUser(DrillViewExpander context, List<String> workspaceSchemaPath, org.apache.calcite.schema.SchemaPlus tokenSchemaTree) org.apache.calcite.schema.Schema.TableTypeorg.apache.calcite.rel.type.RelDataTypegetRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) org.apache.calcite.schema.StatisticGet the query part of the view.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 relOptTable)
-
Constructor Details
-
DrillViewTable
-
-
Method Details
-
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 relOptTable) - Specified by:
toRelin interfaceorg.apache.calcite.schema.TranslatableTable
-
expandViewForImpersonatedUser
protected org.apache.calcite.rel.RelNode expandViewForImpersonatedUser(DrillViewExpander context, List<String> workspaceSchemaPath, org.apache.calcite.schema.SchemaPlus tokenSchemaTree) -
getJdbcTableType
public org.apache.calcite.schema.Schema.TableType getJdbcTableType()- Specified by:
getJdbcTableTypein interfaceorg.apache.calcite.schema.Table
-
getViewSql
Description copied from interface:DrillViewInfoProviderGet the query part of the view.- Specified by:
getViewSqlin interfaceDrillViewInfoProvider
-
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
-