| Package | Description |
|---|---|
| org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| Modifier and Type | Field and Description |
|---|---|
RelRoot |
CalcitePrepare.ConvertResult.root |
| Constructor and Description |
|---|
AnalyzeViewResult(CalcitePrepareImpl prepare,
SqlValidator validator,
String sql,
SqlNode sqlNode,
RelDataType rowType,
RelRoot root,
Table table,
com.google.common.collect.ImmutableList<String> tablePath,
RexNode constraint,
ImmutableIntList columnMapping,
boolean modifiable) |
ConvertResult(CalcitePrepareImpl prepare,
SqlValidator validator,
String sql,
SqlNode sqlNode,
RelDataType rowType,
RelRoot root) |
| Modifier and Type | Method and Description |
|---|---|
RelRoot |
RelOptTable.ViewExpander.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath)
Returns a relational expression that is to be substituted for an access
to a SQL view.
|
| Modifier and Type | Field and Description |
|---|---|
private RelRoot |
Prepare.PreparedExplain.root |
private RelRoot |
PlannerImpl.root |
| Modifier and Type | Method and Description |
|---|---|
RelRoot |
LixToRelTranslator.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
RelRoot |
Prepare.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
RelRoot |
CalcitePrepareImpl.CalcitePreparingStmt.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
RelRoot |
PlannerImpl.ViewExpanderImpl.expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath) |
protected RelRoot |
Prepare.optimize(RelRoot root,
List<Prepare.Materialization> materializations,
List<CalciteSchema.LatticeEntry> lattices)
Optimizes a query plan.
|
RelRoot |
PlannerImpl.rel(SqlNode sql) |
protected RelRoot |
Prepare.trimUnusedFields(RelRoot root)
Walks over a tree of relational expressions, replacing each
RelNode with a 'slimmed down' relational
expression that projects
only the columns required by its consumer. |
| Modifier and Type | Method and Description |
|---|---|
private CalcitePrepare.AnalyzeViewResult |
CalcitePrepareImpl.analyze_(SqlValidator validator,
String sql,
SqlNode sqlNode,
RelRoot root,
boolean fail) |
protected abstract Prepare.PreparedResult |
Prepare.createPreparedExplanation(RelDataType resultType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
protected Prepare.PreparedResult |
CalcitePrepareImpl.CalcitePreparingStmt.createPreparedExplanation(RelDataType resultType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
protected RelTraitSet |
Prepare.getDesiredRootTraitSet(RelRoot root) |
protected abstract Prepare.PreparedResult |
Prepare.implement(RelRoot root)
Implements a physical query plan.
|
protected Prepare.PreparedResult |
CalcitePrepareImpl.CalcitePreparingStmt.implement(RelRoot root) |
protected RelRoot |
Prepare.optimize(RelRoot root,
List<Prepare.Materialization> materializations,
List<CalciteSchema.LatticeEntry> lattices)
Optimizes a query plan.
|
protected RelRoot |
Prepare.trimUnusedFields(RelRoot root)
Walks over a tree of relational expressions, replacing each
RelNode with a 'slimmed down' relational
expression that projects
only the columns required by its consumer. |
| Constructor and Description |
|---|
CalcitePreparedExplain(RelDataType resultType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
PreparedExplain(RelDataType rowType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
| Modifier and Type | Method and Description |
|---|---|
static RelRoot |
RelRoot.of(RelNode rel,
RelDataType rowType,
SqlKind kind)
Creates a simple RelRoot.
|
static RelRoot |
RelRoot.of(RelNode rel,
SqlKind kind)
Creates a simple RelRoot.
|
RelRoot |
RelRoot.withCollation(RelCollation collation) |
RelRoot |
RelRoot.withKind(SqlKind kind)
Creates a copy, assigning a new kind.
|
RelRoot |
RelRoot.withRel(RelNode rel)
Creates a copy of this RelRoot, assigning a
RelNode. |
| Modifier and Type | Method and Description |
|---|---|
private RelRoot |
ViewTable.expandView(RelOptTable.ToRelContext preparingStmt,
RelDataType rowType,
String queryString) |
| Modifier and Type | Method and Description |
|---|---|
RelRoot |
SqlToRelConverter.convertQuery(SqlNode query,
boolean needsValidation,
boolean top)
Converts an unvalidated query's parse tree into a relational expression.
|
protected RelRoot |
SqlToRelConverter.convertQueryRecursive(SqlNode query,
boolean top,
RelDataType targetRowType)
Recursively converts a query to a relational expression.
|
RelRoot |
SqlToRelConverter.convertWith(SqlWith with,
boolean top)
Converts a WITH sub-query into a relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
RelRoot |
Planner.rel(SqlNode sql)
Converts a SQL parse tree into a tree of relational expressions.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.