public class CalcitePlanner extends Object implements org.apache.calcite.tools.Planner, org.apache.calcite.plan.RelOptTable.ViewExpander
PlannerImpl, as of version 1.21,
but with the validator made accessible, and with the minimum of formatting
changes needed to pass Druid's static checks. Note that the resulting code
is more Calcite-like than Druid-like. There seemed no value in restructuring
the code just to be more Druid-like.| Constructor and Description |
|---|
CalcitePlanner(org.apache.calcite.tools.FrameworkConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.calcite.rel.RelNode |
convert(org.apache.calcite.sql.SqlNode sql) |
org.apache.calcite.rel.RelRoot |
expandView(org.apache.calcite.rel.type.RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
org.apache.calcite.tools.FrameworkConfig |
frameworkConfig() |
org.apache.calcite.plan.RelTraitSet |
getEmptyTraitSet() |
org.apache.calcite.adapter.java.JavaTypeFactory |
getTypeFactory() |
org.apache.calcite.sql.validate.SqlValidator |
getValidator() |
org.apache.calcite.sql.SqlNode |
parse(Reader reader) |
org.apache.calcite.rel.RelRoot |
rel(org.apache.calcite.sql.SqlNode sql) |
void |
reset() |
org.apache.calcite.rel.RelNode |
transform(int ruleSetIndex,
org.apache.calcite.plan.RelTraitSet requiredOutputTraits,
org.apache.calcite.rel.RelNode rel) |
org.apache.calcite.sql.SqlNode |
validate(org.apache.calcite.sql.SqlNode sqlNode) |
org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNode,org.apache.calcite.rel.type.RelDataType> |
validateAndGetType(org.apache.calcite.sql.SqlNode sqlNode) |
public CalcitePlanner(org.apache.calcite.tools.FrameworkConfig config)
public org.apache.calcite.plan.RelTraitSet getEmptyTraitSet()
getEmptyTraitSet in interface org.apache.calcite.tools.Plannerpublic org.apache.calcite.tools.FrameworkConfig frameworkConfig()
public void close()
close in interface AutoCloseableclose in interface org.apache.calcite.tools.Plannerpublic void reset()
reset in interface org.apache.calcite.tools.Plannerpublic org.apache.calcite.sql.SqlNode parse(Reader reader) throws org.apache.calcite.sql.parser.SqlParseException
parse in interface org.apache.calcite.tools.Plannerorg.apache.calcite.sql.parser.SqlParseExceptionpublic org.apache.calcite.sql.SqlNode validate(org.apache.calcite.sql.SqlNode sqlNode)
throws org.apache.calcite.tools.ValidationException
validate in interface org.apache.calcite.tools.Plannerorg.apache.calcite.tools.ValidationExceptionpublic org.apache.calcite.sql.validate.SqlValidator getValidator()
public org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNode,org.apache.calcite.rel.type.RelDataType> validateAndGetType(org.apache.calcite.sql.SqlNode sqlNode)
throws org.apache.calcite.tools.ValidationException
validateAndGetType in interface org.apache.calcite.tools.Plannerorg.apache.calcite.tools.ValidationExceptionpublic final org.apache.calcite.rel.RelNode convert(org.apache.calcite.sql.SqlNode sql)
convert in interface org.apache.calcite.tools.Plannerpublic org.apache.calcite.rel.RelRoot rel(org.apache.calcite.sql.SqlNode sql)
rel in interface org.apache.calcite.tools.Plannerpublic org.apache.calcite.rel.RelRoot expandView(org.apache.calcite.rel.type.RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath)
expandView in interface org.apache.calcite.plan.RelOptTable.ViewExpanderpublic org.apache.calcite.adapter.java.JavaTypeFactory getTypeFactory()
getTypeFactory in interface org.apache.calcite.tools.Plannerpublic org.apache.calcite.rel.RelNode transform(int ruleSetIndex,
org.apache.calcite.plan.RelTraitSet requiredOutputTraits,
org.apache.calcite.rel.RelNode rel)
transform in interface org.apache.calcite.tools.PlannerCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.