| Package | Description |
|---|---|
| org.apache.calcite |
Main package for Calcite, the dynamic data management platform.
|
| org.apache.calcite.adapter.clone |
Provides utility classes.
|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.adapter.java |
Query provider based on Java in-memory data
structures.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.model |
Provides model files, in JSON format, defining schemas and other metadata.
|
| 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.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaPlus |
DataContext.getRootSchema()
Returns a sub-schema with a given name, or null.
|
| Modifier and Type | Field and Description |
|---|---|
private SchemaPlus |
CloneSchema.sourceSchema |
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
ArrayTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
<T> Queryable<T> |
ListTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
Schema |
CloneSchema.Factory.create(SchemaPlus parentSchema,
String name,
Map<String,Object> operand) |
| Constructor and Description |
|---|
CloneSchema(SchemaPlus sourceSchema)
Creates a CloneSchema.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
AbstractElasticsearchTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
| Constructor and Description |
|---|
ElasticsearchQueryable(QueryProvider queryProvider,
SchemaPlus schema,
AbstractElasticsearchTable table,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
ReflectiveSchema.ReflectiveTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
Schema |
ReflectiveSchema.Factory.create(SchemaPlus parentSchema,
String name,
Map<String,Object> operand) |
Expression |
AbstractQueryableTable.getExpression(SchemaPlus schema,
String tableName,
Class clazz) |
Expression |
ReflectiveSchema.FieldTable.getExpression(SchemaPlus schema,
String tableName,
Class clazz) |
(package private) Expression |
ReflectiveSchema.getTargetExpression(SchemaPlus parentSchema,
String name)
Returns an expression for the object wrapped by this schema (not the
schema itself).
|
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
JdbcTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
static JdbcSchema |
JdbcSchema.create(SchemaPlus parentSchema,
String name,
DataSource dataSource,
SqlDialectFactory dialectFactory,
String catalog,
String schema) |
static JdbcSchema |
JdbcSchema.create(SchemaPlus parentSchema,
String name,
DataSource dataSource,
String catalog,
String schema) |
static JdbcSchema |
JdbcSchema.create(SchemaPlus parentSchema,
String name,
Map<String,Object> operand)
Creates a JdbcSchema, taking credentials from a map.
|
Schema |
JdbcSchema.Factory.create(SchemaPlus parentSchema,
String name,
Map<String,Object> operand) |
Expression |
JdbcSchema.getExpression(SchemaPlus parentSchema,
String name) |
| Constructor and Description |
|---|
JdbcTableQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
| Modifier and Type | Class and Description |
|---|---|
private class |
CalciteSchema.SchemaPlusImpl
Implementation of
SchemaPlus based on a
CalciteSchema. |
| Modifier and Type | Method and Description |
|---|---|
SchemaPlus |
CalciteSchema.SchemaPlusImpl.add(String name,
Schema schema) |
SchemaPlus |
CalciteSchema.SchemaPlusImpl.getParentSchema() |
SchemaPlus |
CalciteConnectionImpl.getRootSchema() |
SchemaPlus |
CalciteConnectionImpl.DataContextImpl.getRootSchema() |
SchemaPlus |
CalciteConnectionImpl.SlimDataContext.getRootSchema() |
SchemaPlus |
CalciteConnection.getRootSchema()
Returns the root schema.
|
SchemaPlus |
CalciteSchema.SchemaPlusImpl.getSubSchema(String name) |
SchemaPlus |
CalciteSchema.plus() |
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
CalciteMetaImpl.MetadataTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
static CalciteSchema |
CalciteSchema.from(SchemaPlus plus) |
Expression |
CalciteSchema.SchemaPlusImpl.getExpression(SchemaPlus parentSchema,
String name) |
Expression |
CalciteConnectionImpl.RootSchema.getExpression(SchemaPlus parentSchema,
String name) |
| Modifier and Type | Field and Description |
|---|---|
private Deque<Pair<String,SchemaPlus>> |
ModelHandler.schemaStack |
| Modifier and Type | Method and Description |
|---|---|
private SchemaPlus |
ModelHandler.currentMutableSchema(String elementType) |
private SchemaPlus |
ModelHandler.currentSchema() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ModelHandler.addFunctions(SchemaPlus schema,
String functionName,
List<String> path,
String className,
String methodName,
boolean upCase)
Creates and validates a
ScalarFunctionImpl, and adds it to a
schema. |
static void |
ModelHandler.create(SchemaPlus schema,
String functionName,
List<String> path,
String className,
String methodName)
|
private void |
ModelHandler.populateSchema(JsonSchema jsonSchema,
SchemaPlus schema) |
| Modifier and Type | Method and Description |
|---|---|
SchemaPlus |
VisitorDataContext.getRootSchema() |
| Modifier and Type | Class and Description |
|---|---|
private static class |
RelOptTableImpl.MySchemaPlus
Implementation of
SchemaPlus that wraps a regular schema and knows
its name and parent. |
| Modifier and Type | Field and Description |
|---|---|
private SchemaPlus |
PlannerImpl.defaultSchema |
private SchemaPlus |
RelOptTableImpl.MySchemaPlus.parent |
| Modifier and Type | Method and Description |
|---|---|
SchemaPlus |
RelOptTableImpl.MySchemaPlus.add(String name,
Schema schema) |
SchemaPlus |
RelOptTableImpl.MySchemaPlus.getParentSchema() |
SchemaPlus |
RelOptTableImpl.MySchemaPlus.getSubSchema(String name) |
private static SchemaPlus |
PlannerImpl.rootSchema(SchemaPlus schema) |
| Modifier and Type | Method and Description |
|---|---|
private static com.google.common.base.Function<Class,Expression> |
RelOptTableImpl.getClassExpressionFunction(SchemaPlus schema,
String tableName,
Table table) |
Expression |
RelOptTableImpl.MySchemaPlus.getExpression(SchemaPlus parentSchema,
String name) |
private static SchemaPlus |
PlannerImpl.rootSchema(SchemaPlus schema) |
| Constructor and Description |
|---|
MySchemaPlus(SchemaPlus parent,
String name,
Schema schema) |
| Modifier and Type | Field and Description |
|---|---|
private SchemaPlus |
Schemas.DummyDataContext.rootSchema |
| Modifier and Type | Method and Description |
|---|---|
SchemaPlus |
SchemaPlus.add(String name,
Schema schema)
Adds a schema as a sub-schema of this schema, and returns the wrapped
object.
|
SchemaPlus |
SchemaPlus.getParentSchema()
Returns the parent schema, or null if this schema has no parent.
|
SchemaPlus |
Schemas.DummyDataContext.getRootSchema() |
SchemaPlus |
SchemaPlus.getSubSchema(String name) |
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
QueryableTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName)
Converts this table into a
Queryable. |
Schema |
SchemaFactory.create(SchemaPlus parentSchema,
String name,
Map<String,Object> operand)
Creates a Schema.
|
T |
TableFactory.create(SchemaPlus schema,
String name,
Map<String,Object> operand,
RelDataType rowType)
Creates a Table.
|
static DataContext |
Schemas.createDataContext(Connection connection,
SchemaPlus rootSchema) |
static Expression |
Schemas.expression(SchemaPlus schema)
Returns the expression for a schema.
|
Expression |
Schema.getExpression(SchemaPlus parentSchema,
String name)
Returns the expression by which this schema can be referenced in generated
code.
|
Expression |
QueryableTable.getExpression(SchemaPlus schema,
String tableName,
Class clazz)
Generates an expression with which this table can be referenced in
generated code.
|
static Path |
Schemas.path(SchemaPlus schema)
Returns the path to get to a schema from its root.
|
static <E> Queryable<E> |
Schemas.queryable(DataContext root,
SchemaPlus schema,
Class<E> clazz,
String tableName)
Returns a
Queryable, given a schema and table name. |
static Expression |
Schemas.subSchemaExpression(SchemaPlus schema,
String name,
Class type)
Returns the expression for a sub-schema.
|
static Expression |
Schemas.tableExpression(SchemaPlus schema,
Type elementType,
String tableName,
Class clazz)
Returns the expression to access a table within a schema.
|
| Constructor and Description |
|---|
DummyDataContext(CalciteConnection connection,
SchemaPlus rootSchema) |
| Modifier and Type | Field and Description |
|---|---|
SchemaPlus |
AbstractTableQueryable.schema |
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
ViewTable.asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
Schema |
AbstractSchema.Factory.create(SchemaPlus parentSchema,
String name,
Map<String,Object> operand) |
Expression |
DelegatingSchema.getExpression(SchemaPlus parentSchema,
String name) |
Expression |
AbstractSchema.getExpression(SchemaPlus parentSchema,
String name) |
static ViewTableMacro |
ViewTable.viewMacro(SchemaPlus schema,
String viewSql,
List<String> schemaPath)
Deprecated.
|
static ViewTableMacro |
ViewTable.viewMacro(SchemaPlus schema,
String viewSql,
List<String> schemaPath,
Boolean modifiable)
Deprecated.
|
static ViewTableMacro |
ViewTable.viewMacro(SchemaPlus schema,
String viewSql,
List<String> schemaPath,
List<String> viewPath,
Boolean modifiable)
Table macro that returns a view.
|
| Constructor and Description |
|---|
AbstractTableQueryable(QueryProvider queryProvider,
SchemaPlus schema,
QueryableTable table,
String tableName) |
| Modifier and Type | Field and Description |
|---|---|
private SchemaPlus |
Frameworks.ConfigBuilder.defaultSchema |
private SchemaPlus |
Frameworks.StdFrameworkConfig.defaultSchema |
| Modifier and Type | Method and Description |
|---|---|
static SchemaPlus |
Frameworks.createRootSchema(boolean addMetadataSchema)
Creates a root schema.
|
SchemaPlus |
Frameworks.StdFrameworkConfig.getDefaultSchema() |
SchemaPlus |
FrameworkConfig.getDefaultSchema()
Returns the default schema that should be checked before looking at the
root schema.
|
| Modifier and Type | Method and Description |
|---|---|
R |
Frameworks.PlannerAction.apply(RelOptCluster cluster,
RelOptSchema relOptSchema,
SchemaPlus rootSchema) |
abstract R |
Frameworks.PrepareAction.apply(RelOptCluster cluster,
RelOptSchema relOptSchema,
SchemaPlus rootSchema,
CalciteServerStatement statement) |
Frameworks.ConfigBuilder |
Frameworks.ConfigBuilder.defaultSchema(SchemaPlus defaultSchema) |
| Constructor and Description |
|---|
StdFrameworkConfig(Context context,
SqlRexConvertletTable convertletTable,
SqlOperatorTable operatorTable,
com.google.common.collect.ImmutableList<Program> programs,
com.google.common.collect.ImmutableList<RelTraitDef> traitDefs,
SqlParser.Config parserConfig,
SqlToRelConverter.Config sqlToRelConverterConfig,
SchemaPlus defaultSchema,
RelOptCostFactory costFactory,
RelDataTypeSystem typeSystem,
RexExecutor executor) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.