public class SqlConverter extends Object
| Constructor and Description |
|---|
SqlConverter(QueryContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
disallowTemporaryTables()
Disallow temporary tables presence in sql statement (ex: in view definitions)
|
org.apache.calcite.plan.RelOptCostFactory |
getCostFactory() |
org.apache.calcite.schema.SchemaPlus |
getDefaultSchema() |
org.apache.calcite.sql.SqlOperatorTable |
getOpTab() |
org.apache.calcite.rel.type.RelDataType |
getOutputType(org.apache.calcite.sql.SqlNode validatedNode) |
org.apache.calcite.schema.SchemaPlus |
getRootSchema() |
org.apache.calcite.adapter.java.JavaTypeFactory |
getTypeFactory() |
org.apache.calcite.sql.SqlNode |
parse(String sql) |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.sql.SqlNode validatedNode) |
org.apache.calcite.sql.SqlNode |
validate(org.apache.calcite.sql.SqlNode parsedNode) |
public SqlConverter(QueryContext context)
public org.apache.calcite.sql.SqlNode parse(String sql)
public org.apache.calcite.sql.SqlNode validate(org.apache.calcite.sql.SqlNode parsedNode)
public org.apache.calcite.rel.type.RelDataType getOutputType(org.apache.calcite.sql.SqlNode validatedNode)
public org.apache.calcite.adapter.java.JavaTypeFactory getTypeFactory()
public org.apache.calcite.sql.SqlOperatorTable getOpTab()
public org.apache.calcite.plan.RelOptCostFactory getCostFactory()
public org.apache.calcite.schema.SchemaPlus getRootSchema()
public org.apache.calcite.schema.SchemaPlus getDefaultSchema()
public void disallowTemporaryTables()
public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.sql.SqlNode validatedNode)
Copyright © 2017 The Apache Software Foundation. All rights reserved.