Package | Description |
---|---|
org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
org.apache.calcite.materialize |
Management of materialized query results.
|
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.schema |
Schema SPI.
|
org.apache.calcite.sql.validate |
SQL validation.
|
Modifier and Type | Class and Description |
---|---|
static class |
CalciteSchema.TableEntryImpl
Implementation of
CalciteSchema.TableEntry
where all properties are held in fields. |
Modifier and Type | Field and Description |
---|---|
private CalciteSchema.TableEntry |
CalciteSchema.LatticeEntryImpl.starTableEntry |
Modifier and Type | Field and Description |
---|---|
protected NameMap<CalciteSchema.TableEntry> |
CalciteSchema.tableMap
Tables explicitly defined in this schema.
|
Modifier and Type | Method and Description |
---|---|
CalciteSchema.TableEntry |
CalciteSchema.add(java.lang.String tableName,
Table table)
Defines a table within this schema.
|
CalciteSchema.TableEntry |
CalciteSchema.add(java.lang.String tableName,
Table table,
com.google.common.collect.ImmutableList<java.lang.String> sqls)
Defines a table within this schema.
|
protected CalciteSchema.TableEntry |
SimpleCalciteSchema.getImplicitTable(java.lang.String tableName,
boolean caseSensitive) |
protected CalciteSchema.TableEntry |
CachingCalciteSchema.getImplicitTable(java.lang.String tableName,
boolean caseSensitive) |
protected abstract CalciteSchema.TableEntry |
CalciteSchema.getImplicitTable(java.lang.String tableName,
boolean caseSensitive)
Returns a table with a given name that is defined implicitly
(that is, by the underlying
Schema object, not explicitly
by a call to CalciteSchema.add(String, Table) ), or null. |
protected CalciteSchema.TableEntry |
SimpleCalciteSchema.getImplicitTableBasedOnNullaryFunction(java.lang.String tableName,
boolean caseSensitive) |
protected CalciteSchema.TableEntry |
CachingCalciteSchema.getImplicitTableBasedOnNullaryFunction(java.lang.String tableName,
boolean caseSensitive) |
protected abstract CalciteSchema.TableEntry |
CalciteSchema.getImplicitTableBasedOnNullaryFunction(java.lang.String tableName,
boolean caseSensitive)
Returns table function with a given name and zero arguments that is
defined implicitly (that is, by the underlying
Schema object,
not explicitly by a call to CalciteSchema.add(String, Function) ), or null. |
abstract CalciteSchema.TableEntry |
CalciteSchema.LatticeEntry.getStarTable() |
CalciteSchema.TableEntry |
CalciteSchema.LatticeEntryImpl.getStarTable() |
CalciteSchema.TableEntry |
CalciteSchema.getTable(java.lang.String tableName,
boolean caseSensitive)
Returns a table with the given name.
|
CalciteSchema.TableEntry |
CalciteSchema.getTableBasedOnNullaryFunction(java.lang.String tableName,
boolean caseSensitive)
Returns a tables derived from explicit and implicit functions
that take zero parameters.
|
CalciteSchema.TableEntry |
CalciteSchema.getTableBySql(java.lang.String sql)
Returns a table that materializes the given SQL statement.
|
Constructor and Description |
---|
CachingCalciteSchema(CalciteSchema parent,
Schema schema,
java.lang.String name,
NameMap<CalciteSchema> subSchemaMap,
NameMap<CalciteSchema.TableEntry> tableMap,
NameMap<CalciteSchema.LatticeEntry> latticeMap,
NameMap<CalciteSchema.TypeEntry> typeMap,
NameMultimap<CalciteSchema.FunctionEntry> functionMap,
NameSet functionNames,
NameMap<CalciteSchema.FunctionEntry> nullaryFunctionMap,
java.util.List<? extends java.util.List<java.lang.String>> path) |
CalciteSchema(CalciteSchema parent,
Schema schema,
java.lang.String name,
NameMap<CalciteSchema> subSchemaMap,
NameMap<CalciteSchema.TableEntry> tableMap,
NameMap<CalciteSchema.LatticeEntry> latticeMap,
NameMap<CalciteSchema.TypeEntry> typeMap,
NameMultimap<CalciteSchema.FunctionEntry> functionMap,
NameSet functionNames,
NameMap<CalciteSchema.FunctionEntry> nullaryFunctionMap,
java.util.List<? extends java.util.List<java.lang.String>> path) |
SimpleCalciteSchema(CalciteSchema parent,
Schema schema,
java.lang.String name,
NameMap<CalciteSchema> subSchemaMap,
NameMap<CalciteSchema.TableEntry> tableMap,
NameMap<CalciteSchema.LatticeEntry> latticeMap,
NameMap<CalciteSchema.TypeEntry> typeMap,
NameMultimap<CalciteSchema.FunctionEntry> functionMap,
NameSet functionNames,
NameMap<CalciteSchema.FunctionEntry> nullaryFunctionMap,
java.util.List<? extends java.util.List<java.lang.String>> path) |
Modifier and Type | Field and Description |
---|---|
(package private) CalciteSchema.TableEntry |
MaterializationActor.Materialization.materializedTable |
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<Pair<CalciteSchema.TableEntry,TileKey>> |
MaterializationService.C |
Modifier and Type | Method and Description |
---|---|
CalciteSchema.TableEntry |
MaterializationService.checkValid(MaterializationKey key)
Checks whether a materialization is valid, and if so, returns the table
where the data are stored.
|
Modifier and Type | Method and Description |
---|---|
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
java.util.List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact)
Defines a tile.
|
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
java.util.List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact,
java.lang.String suggestedTableName,
MaterializationService.TableFactory tableFactory) |
Constructor and Description |
---|
Materialization(MaterializationKey key,
CalciteSchema rootSchema,
CalciteSchema.TableEntry materializedTable,
java.lang.String sql,
RelDataType rowType,
java.util.List<java.lang.String> viewSchemaPath)
Creates a materialization.
|
Modifier and Type | Method and Description |
---|---|
Pair<CalciteSchema.TableEntry,TileKey> |
RelOptLattice.getAggregate(RelOptPlanner planner,
ImmutableBitSet groupSet,
java.util.List<Lattice.Measure> measureList)
Retrieves a materialized table that will satisfy an aggregate query on
the star table.
|
Modifier and Type | Field and Description |
---|---|
(package private) CalciteSchema.TableEntry |
Prepare.Materialization.materializedTable
The table that holds the materialized data.
|
CalciteSchema.TableEntry |
CalciteMaterializer.Callback.starTable |
Modifier and Type | Method and Description |
---|---|
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
CalciteSchema.TableEntry tableEntry,
java.lang.Double rowCount) |
private static java.util.function.Function<java.lang.Class,Expression> |
RelOptTableImpl.getClassExpressionFunction(CalciteSchema.TableEntry tableEntry,
Table table) |
Constructor and Description |
---|
Callback(RelNode rel,
CalciteSchema.TableEntry starTable,
RelOptTableImpl starRelOptTable) |
Materialization(CalciteSchema.TableEntry materializedTable,
java.lang.String sql,
java.util.List<java.lang.String> viewSchemaPath) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<CalciteSchema.TableEntry> |
Schemas.getStarTables(CalciteSchema schema)
Returns the star tables defined in a schema.
|
Modifier and Type | Method and Description |
---|---|
static CalciteSchema.TableEntry |
SqlValidatorUtil.getTableEntry(SqlValidatorCatalogReader catalogReader,
java.util.List<java.lang.String> names)
Finds a
CalciteSchema.TableEntry in a
given catalog reader whose table has the given name, possibly qualified. |
private static CalciteSchema.TableEntry |
SqlValidatorUtil.getTableEntryFrom(CalciteSchema schema,
java.lang.String name,
boolean caseSensitive) |
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.