| Package | Description |
|---|---|
| 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.enumerable |
Query optimizer rules for Java calling convention.
|
| 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.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.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ArrayTable
Implementation of table that reads rows from column stores, one per column.
|
(package private) class |
ListTable
Implementation of table that reads rows from a read-only list and returns
an enumerator of rows.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Table |
CloneSchema.createCloneTable(JavaTypeFactory typeFactory,
RelProtoDataType protoRowType,
List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList,
Enumerable<T> source)
Deprecated.
|
static <T> Table |
CloneSchema.createCloneTable(JavaTypeFactory typeFactory,
RelProtoDataType protoRowType,
List<RelCollation> collations,
List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList,
Enumerable<T> source) |
private Table |
CloneSchema.createCloneTable(QueryProvider queryProvider,
QueryableTable sourceTable,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Table> |
CloneSchema.getTableMap() |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractElasticsearchTable
Table based on an Elasticsearch type.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
EnumerableTableScan.canHandle(Table table)
Returns whether EnumerableTableScan can generate code to handle a
particular variant of the Table SPI.
|
static Class |
EnumerableTableScan.deduceElementType(Table table) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractQueryableTable
Abstract base class for implementing
Table. |
private static class |
ReflectiveSchema.FieldTable<T>
Table based on a Java field.
|
private static class |
ReflectiveSchema.ReflectiveTable
Table that is implemented by reading from a Java object.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<String,Table> |
ReflectiveSchema.tableMap |
| Modifier and Type | Method and Description |
|---|---|
private <T> Table |
ReflectiveSchema.fieldRelation(Field field)
Returns a table based on a particular field of this schema.
|
| Modifier and Type | Method and Description |
|---|---|
private Map<String,Table> |
ReflectiveSchema.createTableMap() |
protected Map<String,Table> |
ReflectiveSchema.getTableMap() |
| Modifier and Type | Class and Description |
|---|---|
class |
JdbcTable
Queryable that gets its data from a table within a JDBC connection.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
JdbcSchema.getTable(String name) |
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
CalciteMetaImpl.MetadataTable<E>
Table whose contents are metadata.
|
| Modifier and Type | Field and Description |
|---|---|
private Table |
CalciteMetaImpl.CalciteMetaTable.calciteTable |
private Table |
CalciteSchema.TableEntryImpl.table |
Table |
CalcitePrepare.AnalyzeViewResult.table
Not null if and only if the view is modifiable.
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,Table> |
MetadataSchema.TABLE_MAP |
| Modifier and Type | Method and Description |
|---|---|
abstract Table |
CalciteSchema.TableEntry.getTable() |
Table |
CalciteSchema.TableEntryImpl.getTable() |
Table |
CalciteSchema.SchemaPlusImpl.getTable(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Table> |
MetadataSchema.getTableMap() |
NavigableMap<String,Table> |
CalciteSchema.getTablesBasedOnNullaryFunctions()
Returns tables derived from explicit and implicit functions
that take zero parameters.
|
| Modifier and Type | Method and Description |
|---|---|
CalciteSchema.TableEntry |
CalciteSchema.add(String tableName,
Table table)
Defines a table within this schema.
|
void |
CalciteSchema.SchemaPlusImpl.add(String name,
Table table) |
CalciteSchema.TableEntry |
CalciteSchema.add(String tableName,
Table table,
com.google.common.collect.ImmutableList<String> sqls)
Defines a table within this schema.
|
protected CalciteSchema.TableEntryImpl |
CalciteSchema.tableEntry(String name,
Table table)
Creates a TableEntryImpl with no SQLs.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
CachingCalciteSchema.addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,Table> builder) |
protected abstract void |
CalciteSchema.addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,Table> builder)
Adds implicit table functions to a builder.
|
protected void |
SimpleCalciteSchema.addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,Table> builder) |
| 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) |
CalciteMetaTable(Table calciteTable,
String tableCat,
String tableSchem,
String tableName) |
TableEntryImpl(CalciteSchema schema,
String name,
Table table,
com.google.common.collect.ImmutableList<String> sqls)
Creates a TableEntryImpl.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
MaterializationService.TableFactory.createTable(CalciteSchema schema,
String viewSql,
List<String> viewSchemaPath) |
Table |
MaterializationService.DefaultTableFactory.createTable(CalciteSchema schema,
String viewSql,
List<String> viewSchemaPath) |
| Modifier and Type | Field and Description |
|---|---|
private Table |
RelOptTableImpl.table |
| Modifier and Type | Method and Description |
|---|---|
Table |
RelOptTableImpl.MySchemaPlus.getTable(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
RelOptTableImpl.MySchemaPlus.add(String name,
Table table) |
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
Table table,
com.google.common.collect.ImmutableList<String> names) |
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
Table table,
Path path) |
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. |
private static com.google.common.base.Function<Class,Expression> |
RelOptTableImpl.getClassExpressionFunction(CalciteSchema.TableEntry tableEntry,
Table table) |
private static com.google.common.base.Function<Class,Expression> |
RelOptTableImpl.getClassExpressionFunction(SchemaPlus schema,
String tableName,
Table table) |
| Constructor and Description |
|---|
RelOptTableImpl(RelOptSchema schema,
RelDataType rowType,
List<String> names,
Table table,
com.google.common.base.Function<Class,Expression> expressionFunction,
Double rowCount) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TableFactory<T extends Table>
Factory for
Table objects. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CustomColumnResolvingTable
Extension to
Table that specifies a custom way to resolve column
names. |
interface |
ExtensibleTable
Table whose row type can be extended to include extra fields.
|
interface |
FilterableTable
Table that can be scanned, optionally applying supplied filter expressions,
without creating an intermediate relational expression.
|
interface |
ModifiableTable
A table that can be modified.
|
interface |
ModifiableView
A modifiable view onto
ModifiableTable. |
interface |
ProjectableFilterableTable
Table that can be scanned, optionally applying supplied filter expressions,
and projecting a given list of columns,
without creating an intermediate relational expression.
|
interface |
QueryableTable
|
interface |
ScannableTable
Table that can be scanned without creating an intermediate relational
expression.
|
interface |
StreamableTable
Table that can be converted to a stream.
|
interface |
TranslatableTable
Extension to
Table that specifies how it is to be translated to
a relational expression. |
| Modifier and Type | Method and Description |
|---|---|
Table |
ExtensibleTable.extend(List<RelDataTypeField> fields)
Returns a table that has the row type of this table plus the given
fields.
|
Table |
ModifiableView.getTable()
Returns the underlying table.
|
Table |
Schema.getTable(String name)
Returns a table with a given name, or null if not found.
|
Table |
StreamableTable.stream()
Returns an enumerator over the rows in this Table.
|
static Table |
Schemas.table(DataContext root,
String... names)
Returns an
Enumerable over object
arrays, given a fully-qualified table name which leads to a
ScannableTable. |
| Modifier and Type | Method and Description |
|---|---|
void |
SchemaPlus.add(String name,
Table table)
Adds a table to this schema.
|
static RelProtoDataType |
Schemas.proto(Table table)
Returns an implementation of
RelProtoDataType
that asks a given table for its row type with a given type factory. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTable
Abstract base class for implementing
Table. |
class |
MaterializedViewTable
Table that is a materialized view.
|
class |
ModifiableViewTable
Extension to
ViewTable that is modifiable. |
class |
StarTable
Virtual table that is composed of two or more tables joined together.
|
class |
ViewTable
Table whose contents are defined using an SQL statement.
|
| Modifier and Type | Field and Description |
|---|---|
private Table |
ModifiableViewTable.table |
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<Table> |
StarTable.tables |
| Modifier and Type | Method and Description |
|---|---|
private Table |
TableFunctionImpl.apply(List<Object> arguments) |
Table |
ModifiableViewTable.getTable() |
Table |
DelegatingSchema.getTable(String name) |
Table |
AbstractSchema.getTable(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Table> |
AbstractSchema.getTableMap()
Returns a map of tables in this schema by name.
|
| Modifier and Type | Method and Description |
|---|---|
StarTable |
StarTable.add(Table table) |
int |
StarTable.columnOffset(Table table)
Returns the column offset of the first column of
table in this
star table's output row type. |
protected ModifiableViewTable |
ModifiableViewTable.extend(Table extendedTable,
RelProtoDataType protoRowType,
ImmutableIntList newColumnMapping) |
private static ImmutableIntList |
ModifiableViewTable.getNewColumnMapping(Table underlying,
ImmutableIntList oldColumnMapping,
List<RelDataTypeField> extendedColumns,
RelDataTypeFactory typeFactory)
Creates a mapping from the view index to the index in the underlying table.
|
| Modifier and Type | Method and Description |
|---|---|
static StarTable |
StarTable.of(Lattice lattice,
List<Table> tables)
Creates a StarTable and registers it in a schema.
|
| Constructor and Description |
|---|
ModifiableViewTable(Type elementType,
RelProtoDataType rowType,
String viewSql,
List<String> schemaPath,
List<String> viewPath,
Table table,
Path tablePath,
RexNode constraint,
ImmutableIntList columnMapping)
Creates a ModifiableViewTable.
|
| Constructor and Description |
|---|
StarTable(Lattice lattice,
com.google.common.collect.ImmutableList<Table> tables)
Creates a StarTable.
|
| Modifier and Type | Method and Description |
|---|---|
private Table |
SqlValidatorImpl.findTable(CalciteSchema schema,
String tableName,
boolean caseSensitive) |
private Table |
SqlValidatorImpl.findTable(String alias)
Given a table alias, find the corresponding
Table associated with it |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.