| Package | Description |
|---|---|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.plan.volcano |
Optimizes relational expressions.
|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.logical |
Defines logical relational expressions.
|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.rel.mutable |
Defines mutable relational expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.schema |
Schema SPI.
|
| org.apache.calcite.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) RelOptTable |
ElasticsearchRel.Implementor.table |
| Modifier and Type | Method and Description |
|---|---|
RelNode |
AbstractElasticsearchTable.toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable) |
| Constructor and Description |
|---|
ElasticsearchTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
AbstractElasticsearchTable elasticsearchTable,
RelDataType projectRowType)
Creates an ElasticsearchTableScan.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumerableTableScan |
EnumerableTableScan.create(RelOptCluster cluster,
RelOptTable relOptTable)
Creates an EnumerableTableScan.
|
static JavaRowFormat |
EnumerableTableScan.deduceFormat(RelOptTable table) |
| Constructor and Description |
|---|
EnumerableTableModify(RelOptCluster cluster,
RelTraitSet traits,
RelOptTable table,
Prepare.CatalogReader catalogReader,
RelNode child,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened) |
EnumerableTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
Class elementType)
Creates an EnumerableTableScan.
|
| Modifier and Type | Method and Description |
|---|---|
TableModify |
JdbcTable.toModificationRel(RelOptCluster cluster,
RelOptTable table,
Prepare.CatalogReader catalogReader,
RelNode input,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened) |
RelNode |
JdbcTable.toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable) |
| Constructor and Description |
|---|
JdbcTableModify(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
Prepare.CatalogReader catalogReader,
RelNode input,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened) |
JdbcTableScan(RelOptCluster cluster,
RelOptTable table,
JdbcTable jdbcTable,
JdbcConvention jdbcConvention) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Bindables.BindableTableScan.canHandle(RelOptTable table) |
static Bindables.BindableTableScan |
Bindables.BindableTableScan.create(RelOptCluster cluster,
RelOptTable relOptTable)
Creates a BindableTableScan.
|
static Bindables.BindableTableScan |
Bindables.BindableTableScan.create(RelOptCluster cluster,
RelOptTable relOptTable,
List<RexNode> filters,
List<Integer> projects)
Creates a BindableTableScan.
|
| Constructor and Description |
|---|
BindableTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects)
Creates a BindableTableScan.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RelOptAbstractTable
Partial implementation of
RelOptTable. |
| Modifier and Type | Field and Description |
|---|---|
RelOptTable |
RelOptMaterialization.starRelOptTable |
RelOptTable |
RelOptLattice.starRelOptTable |
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.base.Function<RelOptTable,List<String>> |
RelOptMaterializations.GET_QUALIFIED_NAME |
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
RelOptTable.extend(List<RelDataTypeField> extendedFields)
Returns a table with the given extra fields.
|
RelOptTable |
RelOptAbstractTable.extend(List<RelDataTypeField> extendedFields) |
RelOptTable |
RelOptMaterialization.ProjectFilterTable.getTable() |
RelOptTable |
RelOptSchema.getTableForMember(List<String> names)
Retrieves a
RelOptTable based upon a member access. |
RelOptTable |
RelOptSchemaWithSampling.getTableForMember(List<String> names,
String datasetName,
boolean[] usedDataset)
Retrieves a
RelOptTable based upon a member access, using a
sample dataset if it exists. |
RelOptTable |
RelOptLattice.rootTable() |
| Modifier and Type | Method and Description |
|---|---|
static List<RelOptTable> |
RelOptUtil.findAllTables(RelNode rel)
Returns a list of all tables used by this expression or its children
|
static Set<RelOptTable> |
RelOptUtil.findTables(RelNode rel)
Returns a set of tables used by this expression or its children
|
| Modifier and Type | Method and Description |
|---|---|
RelOptLattice |
RelOptPlanner.getLattice(RelOptTable table)
Retrieves a lattice, given its star table.
|
RelOptLattice |
AbstractRelOptPlanner.getLattice(RelOptTable table) |
List<String> |
TableAccessMap.getQualifiedName(RelOptTable table)
Constructs a qualified name for an optimizer table reference.
|
static RelNode |
RelOptMaterialization.tryUseStar(RelNode rel,
RelOptTable starRelOptTable)
Converts a relational expression to one that uses a
StarTable. |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
RelOptMaterializations.usesTable(List<String> qualifiedName,
Set<RelOptTable> usedTables,
Graphs.FrozenGraph<List<String>,DefaultEdge> usesGraph)
Returns whether
table uses one or more of the tables in
usedTables. |
| Constructor and Description |
|---|
RelOptLattice(Lattice lattice,
RelOptTable starRelOptTable) |
RelOptMaterialization(RelNode tableRel,
RelNode queryRel,
RelOptTable starRelOptTable,
List<String> qualifiedTableName)
Creates a RelOptMaterialization.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptLattice |
VolcanoPlanner.getLattice(RelOptTable table) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Prepare.PreparingTable
Definition of a table, for the purposes of the validator and planner.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Prepare.AbstractPreparingTable
Abstract implementation of
Prepare.PreparingTable with an implementation
for Prepare.AbstractPreparingTable.columnHasDefaultValue(org.apache.calcite.rel.type.RelDataType, int, org.apache.calcite.sql2rel.InitializerContext). |
class |
RelOptTableImpl
Implementation of
RelOptTable. |
| Modifier and Type | Field and Description |
|---|---|
private RelOptTable |
Prepare.Materialization.starRelOptTable
Star table identified.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
Prepare.AbstractPreparingTable.extend(List<RelDataTypeField> extendedFields) |
protected RelOptTable |
RelOptTableImpl.extend(Table extendedTable) |
protected abstract RelOptTable |
Prepare.AbstractPreparingTable.extend(Table extendedTable)
Implementation-specific code to instantiate a new
RelOptTable
based on a Table that has been extended. |
| Modifier and Type | Method and Description |
|---|---|
static List<ColumnStrategy> |
RelOptTableImpl.columnStrategies(RelOptTable table)
|
void |
Prepare.Materialization.materialize(RelNode queryRel,
RelOptTable starRelOptTable) |
static int |
RelOptTableImpl.realOrdinal(RelOptTable table,
int i)
Converts the ordinal of a field into the ordinal of a stored field.
|
static RelDataType |
RelOptTableImpl.realRowType(RelOptTable table)
Returns the row type of a table after any
ColumnStrategy.VIRTUAL
columns have been removed. |
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
AbstractRelNode.getTable() |
RelOptTable |
RelNode.getTable()
If this relational expression represents an access to a table, returns
that table, otherwise returns null.
|
RelOptTable |
RelInput.getTable(String table) |
| Modifier and Type | Field and Description |
|---|---|
protected RelOptTable |
TableScan.table
The table definition.
|
protected RelOptTable |
TableModify.table
The table definition.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
TableScan.getTable() |
RelOptTable |
TableModify.getTable() |
| Modifier and Type | Method and Description |
|---|---|
RelNode |
RelFactories.TableScanFactory.createScan(RelOptCluster cluster,
RelOptTable table)
Creates a
TableScan. |
RelNode |
RelFactories.TableScanFactoryImpl.createScan(RelOptCluster cluster,
RelOptTable table) |
static ImmutableIntList |
TableScan.identity(RelOptTable table)
Returns an identity projection for the given table.
|
| Constructor and Description |
|---|
TableModify(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
Prepare.CatalogReader catalogReader,
RelNode input,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened)
Creates a
TableModify. |
TableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table) |
| Modifier and Type | Method and Description |
|---|---|
static LogicalTableScan |
LogicalTableScan.create(RelOptCluster cluster,
RelOptTable relOptTable)
Creates a LogicalTableScan.
|
static LogicalTableModify |
LogicalTableModify.create(RelOptTable table,
Prepare.CatalogReader schema,
RelNode input,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened)
Creates a LogicalTableModify.
|
| Constructor and Description |
|---|
LogicalTableModify(RelOptCluster cluster,
RelOptTable table,
Prepare.CatalogReader schema,
RelNode input,
TableModify.Operation operation,
List<String> updateColumnList,
boolean flattened)
Deprecated.
|
LogicalTableModify(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
Prepare.CatalogReader schema,
RelNode input,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened)
Creates a LogicalTableModify.
|
LogicalTableScan(RelOptCluster cluster,
RelOptTable table)
Deprecated.
|
LogicalTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table)
Creates a LogicalTableScan.
|
| Modifier and Type | Field and Description |
|---|---|
private RelOptTable |
RelColumnOrigin.originTable |
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
RelColumnOrigin.getOriginTable() |
RelOptTable |
RelMetadataQuery.getTableOrigin(RelNode rel)
Determines the origin of a
RelNode, provided it maps to a single
table, optionally with filtering and projection. |
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RelMdCollation.table(RelOptTable table)
Helper method to determine a
TableScan's collation. |
static RelDistribution |
RelMdDistribution.table(RelOptTable table)
Helper method to determine a
TableScan's distribution. |
| Constructor and Description |
|---|
RelColumnOrigin(RelOptTable originTable,
int iOriginColumn,
boolean isDerived) |
| Modifier and Type | Field and Description |
|---|---|
RelOptTable |
MutableTableModify.table |
| Modifier and Type | Method and Description |
|---|---|
static MutableTableModify |
MutableTableModify.of(RelDataType rowType,
MutableRel input,
RelOptTable table,
Prepare.CatalogReader catalogReader,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened)
Creates a MutableTableModify.
|
| Constructor and Description |
|---|
MutableTableModify(RelDataType rowType,
MutableRel input,
RelOptTable table,
Prepare.CatalogReader catalogReader,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened) |
| Modifier and Type | Class and Description |
|---|---|
private static class |
LoptSemiJoinOptimizer.LcsTable
Dummy class to allow code to compile.
|
| Modifier and Type | Method and Description |
|---|---|
private Map<Integer,RelOptTable> |
LoptOptimizeJoinRule.getSimpleFactors(RelMetadataQuery mq,
LoptMultiJoin multiJoin)
Retrieves join factors that correspond to simple table references.
|
| Modifier and Type | Field and Description |
|---|---|
private RelOptTable |
RexTableInputRef.RelTableRef.table |
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
RexTableInputRef.RelTableRef.getTable() |
| Modifier and Type | Method and Description |
|---|---|
static RexTableInputRef.RelTableRef |
RexTableInputRef.RelTableRef.of(RelOptTable table,
int entityNumber) |
| Constructor and Description |
|---|
RelTableRef(RelOptTable table,
int entityNumber) |
| Modifier and Type | Method and Description |
|---|---|
TableModify |
ModifiableTable.toModificationRel(RelOptCluster cluster,
RelOptTable table,
Prepare.CatalogReader catalogReader,
RelNode child,
TableModify.Operation operation,
List<String> updateColumnList,
List<RexNode> sourceExpressionList,
boolean flattened)
Creates a relational expression that modifies this table.
|
RelNode |
TranslatableTable.toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable)
Converts this table into a
relational expression. |
| Modifier and Type | Method and Description |
|---|---|
ColumnStrategy |
ModifiableViewTable.ModifiableViewTableInitializerExpressionFactory.generationStrategy(RelOptTable table,
int iColumn) |
RexNode |
ModifiableViewTable.ModifiableViewTableInitializerExpressionFactory.newColumnDefaultValue(RelOptTable table,
int iColumn,
InitializerContext context) |
RelNode |
MaterializedViewTable.toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable) |
RelNode |
StarTable.toRel(RelOptTable.ToRelContext context,
RelOptTable table) |
RelNode |
ViewTable.toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable) |
| Constructor and Description |
|---|
StarTableScan(RelOptCluster cluster,
RelOptTable relOptTable) |
| Modifier and Type | Method and Description |
|---|---|
static RelOptTable |
SqlValidatorUtil.getRelOptTable(SqlValidatorNamespace namespace,
Prepare.CatalogReader catalogReader,
String datasetName,
boolean[] usedDataset)
Converts a
SqlValidatorScope into a RelOptTable. |
private static RelOptTable |
SqlValidatorUtil.getRelOptTable(TableNamespace tableNamespace,
Prepare.CatalogReader catalogReader,
String datasetName,
boolean[] usedDataset,
List<RelDataTypeField> extendedFields) |
| Modifier and Type | Method and Description |
|---|---|
static RelDataTypeField |
SqlValidatorUtil.getTargetField(RelDataType rowType,
RelDataTypeFactory typeFactory,
SqlIdentifier id,
SqlValidatorCatalogReader catalogReader,
RelOptTable table)
Resolve a target column name in the target table.
|
| Modifier and Type | Method and Description |
|---|---|
protected RelOptTable |
SqlToRelConverter.getTargetTable(SqlNode call) |
| Modifier and Type | Method and Description |
|---|---|
private SqlToRelConverter.Blackboard |
SqlToRelConverter.createInsertBlackboard(RelOptTable targetTable,
RexNode sourceRef,
List<String> targetColumnNames)
Creates a blackboard for translating the expressions of generated columns
in an INSERT statement.
|
private RelNode |
SqlToRelConverter.createModify(RelOptTable targetTable,
RelNode source)
Creates a relational expression to modify a table or modifiable view.
|
private RelNode |
SqlToRelConverter.createSource(RelOptTable targetTable,
RelNode source,
ModifiableView modifiableView,
RelDataType delegateRowType)
Wraps a relational expression in the projects and filters implied by
a
ModifiableView. |
ColumnStrategy |
InitializerExpressionFactory.generationStrategy(RelOptTable table,
int iColumn)
Returns how a column is populated.
|
ColumnStrategy |
NullInitializerExpressionFactory.generationStrategy(RelOptTable table,
int iColumn) |
boolean |
InitializerExpressionFactory.isGeneratedAlways(RelOptTable table,
int iColumn)
Deprecated.
Use
c.generationStrategy(t, i) == VIRTUAL
|| c.generationStrategy(t, i) == STORED |
boolean |
NullInitializerExpressionFactory.isGeneratedAlways(RelOptTable table,
int iColumn) |
RexNode |
InitializerExpressionFactory.newColumnDefaultValue(RelOptTable table,
int iColumn,
InitializerContext context)
Creates an expression which evaluates to the default value for a
particular column.
|
RexNode |
NullInitializerExpressionFactory.newColumnDefaultValue(RelOptTable table,
int iColumn,
InitializerContext context) |
RelNode |
SqlToRelConverter.toRel(RelOptTable table) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.