| Package | Description |
|---|---|
| org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.materialize |
Management of materialized query results.
|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.schema |
Schema SPI.
|
| org.apache.calcite.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CalciteRootSchema
Root schema.
|
| Modifier and Type | Field and Description |
|---|---|
CalciteSchema |
CalciteSchema.Entry.schema |
| Modifier and Type | Method and Description |
|---|---|
CalciteSchema |
CalciteSchema.add(String name,
Schema schema)
Adds a child schema of this schema.
|
static CalciteSchema |
CalciteSchema.from(SchemaPlus plus) |
CalciteSchema |
CalciteSchema.getSubSchema(String schemaName,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
NavigableMap<String,CalciteSchema> |
CalciteSchema.getSubSchemaMap()
Returns a collection of sub-schemas, both explicit (defined using
add(String, org.apache.calcite.schema.Schema)) and implicit
(defined using Schema.getSubSchemaNames()
and Schema.getSubSchema(String)). |
| Constructor and Description |
|---|
CalciteSchema.Entry(CalciteSchema schema,
String name) |
CalciteSchema.FunctionEntry(CalciteSchema schema,
String name) |
CalciteSchema.FunctionEntryImpl(CalciteSchema schema,
String name,
Function function)
Creates a FunctionEntryImpl.
|
CalciteSchema.LatticeEntry(CalciteSchema schema,
String name) |
CalciteSchema.LatticeEntryImpl(CalciteSchema schema,
String name,
Lattice lattice)
Creates a LatticeEntryImpl.
|
CalciteSchema.TableEntry(CalciteSchema schema,
String name,
com.google.common.collect.ImmutableList<String> sqls) |
CalciteSchema.TableEntryImpl(CalciteSchema schema,
String name,
Table table,
com.google.common.collect.ImmutableList<String> sqls)
Creates a TableEntryImpl.
|
CalciteSchema(CalciteSchema parent,
Schema schema,
String name) |
| Modifier and Type | Method and Description |
|---|---|
static Lattice.Builder |
Lattice.builder(CalciteSchema calciteSchema,
String sql) |
static Lattice |
Lattice.create(CalciteSchema schema,
String sql,
boolean auto)
Creates a Lattice.
|
MaterializationKey |
MaterializationService.defineMaterialization(CalciteSchema schema,
TileKey tileKey,
String viewSql,
List<String> viewSchemaPath,
String suggestedTableName,
boolean create)
Defines a new materialization.
|
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact)
Defines a tile.
|
List<Prepare.Materialization> |
MaterializationService.query(CalciteSchema rootSchema)
Gathers a list of all materialized tables known within a given root
schema.
|
| Constructor and Description |
|---|
Lattice.Builder(CalciteSchema schema,
String sql) |
| Constructor and Description |
|---|
CalciteCatalogReader(CalciteSchema rootSchema,
boolean caseSensitive,
List<String> defaultSchema,
JavaTypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
static CalciteSchema |
Schemas.subSchema(CalciteSchema schema,
List<String> names) |
| Modifier and Type | Method and Description |
|---|---|
static CalcitePrepare.ConvertResult |
Schemas.convert(CalciteConnection connection,
CalciteSchema schema,
List<String> schemaPath,
String sql)
Parses and validates a SQL query and converts to relational algebra.
|
static List<CalciteSchema.LatticeEntry> |
Schemas.getLatticeEntries(CalciteSchema schema)
Returns the lattices defined in a schema.
|
static List<Lattice> |
Schemas.getLattices(CalciteSchema schema)
Returns the lattices defined in a schema.
|
static List<CalciteSchema.TableEntry> |
Schemas.getStarTables(CalciteSchema schema)
Returns the star tables defined in a schema.
|
static CalcitePrepare.Context |
Schemas.makeContext(CalciteConnection connection,
CalciteSchema schema,
List<String> schemaPath,
com.google.common.collect.ImmutableMap<CalciteConnectionProperty,String> propValues) |
static CalcitePrepare.ParseResult |
Schemas.parse(CalciteConnection connection,
CalciteSchema schema,
List<String> schemaPath,
String sql)
Parses and validates a SQL query.
|
static CalcitePrepare.CalciteSignature<Object> |
Schemas.prepare(CalciteConnection connection,
CalciteSchema schema,
List<String> schemaPath,
String sql,
com.google.common.collect.ImmutableMap<CalciteConnectionProperty,String> map)
Prepares a SQL query for execution.
|
static CalciteSchema |
Schemas.subSchema(CalciteSchema schema,
List<String> names) |
static String |
Schemas.uniqueTableName(CalciteSchema schema,
String base)
Generates a table name that is unique within the given schema.
|
| Modifier and Type | Method and Description |
|---|---|
static MaterializedViewTable.MaterializedViewTableMacro |
MaterializedViewTable.create(CalciteSchema schema,
String viewSql,
List<String> viewSchemaPath,
String tableName)
Table macro that returns a materialized view.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.