public class ZetaSQLPlannerImpl
extends java.lang.Object
implements org.apache.calcite.tools.Planner
Constructor and Description |
---|
ZetaSQLPlannerImpl(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 sqlNode) |
org.apache.calcite.plan.RelTraitSet |
getEmptyTraitSet() |
org.apache.calcite.rel.type.RelDataTypeFactory |
getTypeFactory() |
org.apache.calcite.sql.SqlNode |
parse(java.io.Reader reader) |
org.apache.calcite.sql.SqlNode |
parse(java.lang.String s) |
org.apache.calcite.rel.RelRoot |
rel(org.apache.calcite.sql.SqlNode sqlNode) |
org.apache.calcite.rel.RelRoot |
rel(java.lang.String sql,
java.util.Map<java.lang.String,com.google.zetasql.Value> params) |
void |
reset() |
org.apache.calcite.rel.RelNode |
transform(int i,
org.apache.calcite.plan.RelTraitSet relTraitSet,
org.apache.calcite.rel.RelNode relNode) |
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 ZetaSQLPlannerImpl(org.apache.calcite.tools.FrameworkConfig config)
public org.apache.calcite.sql.SqlNode parse(java.lang.String s) throws org.apache.calcite.sql.parser.SqlParseException
parse
in interface org.apache.calcite.tools.Planner
org.apache.calcite.sql.parser.SqlParseException
public org.apache.calcite.sql.SqlNode parse(java.io.Reader reader) throws org.apache.calcite.sql.parser.SqlParseException
parse
in interface org.apache.calcite.tools.Planner
org.apache.calcite.sql.parser.SqlParseException
public 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.Planner
org.apache.calcite.tools.ValidationException
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.Planner
org.apache.calcite.tools.ValidationException
public org.apache.calcite.rel.RelRoot rel(org.apache.calcite.sql.SqlNode sqlNode) throws org.apache.calcite.tools.RelConversionException
rel
in interface org.apache.calcite.tools.Planner
org.apache.calcite.tools.RelConversionException
public org.apache.calcite.rel.RelRoot rel(java.lang.String sql, java.util.Map<java.lang.String,com.google.zetasql.Value> params)
public org.apache.calcite.rel.RelNode convert(org.apache.calcite.sql.SqlNode sqlNode)
convert
in interface org.apache.calcite.tools.Planner
public org.apache.calcite.rel.type.RelDataTypeFactory getTypeFactory()
getTypeFactory
in interface org.apache.calcite.tools.Planner
public org.apache.calcite.rel.RelNode transform(int i, org.apache.calcite.plan.RelTraitSet relTraitSet, org.apache.calcite.rel.RelNode relNode) throws org.apache.calcite.tools.RelConversionException
transform
in interface org.apache.calcite.tools.Planner
org.apache.calcite.tools.RelConversionException
public void reset()
reset
in interface org.apache.calcite.tools.Planner
public void close()
close
in interface java.lang.AutoCloseable
close
in interface org.apache.calcite.tools.Planner
public org.apache.calcite.plan.RelTraitSet getEmptyTraitSet()
getEmptyTraitSet
in interface org.apache.calcite.tools.Planner