| Package | Description |
|---|---|
| org.apache.calcite.adapter.clone |
Provides utility classes.
|
| 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.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 | Method and Description |
|---|---|
static <T> Table |
CloneSchema.createCloneTable(JavaTypeFactory typeFactory,
RelProtoDataType protoRowType,
List<ColumnMetaData.Rep> repList,
Enumerable<T> source) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Table> |
CloneSchema.getTableMap() |
| 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. |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Table> |
ReflectiveSchema.getTableMap() |
| Modifier and Type | Method and Description |
|---|---|
Table |
JdbcSchema.getTable(String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract Table |
CalciteSchema.TableEntry.getTable() |
Table |
CalciteSchema.TableEntryImpl.getTable() |
| Modifier and Type | Method and Description |
|---|---|
Pair<String,Table> |
CalciteSchema.getTable(String tableName,
boolean caseSensitive)
Returns a table with the given name.
|
Pair<String,Table> |
CalciteSchema.getTableBasedOnNullaryFunction(String tableName,
boolean caseSensitive)
Returns a tables derived from explicit and implicit functions
that take zero parameters.
|
Pair<String,Table> |
CalciteSchema.getTableBySql(String sql)
Returns a table that materializes the given SQL statement.
|
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.
|
CalciteSchema.TableEntry |
CalciteSchema.add(String tableName,
Table table,
com.google.common.collect.ImmutableList<String> sqls)
Defines a table within this schema.
|
| Constructor and Description |
|---|
CalciteSchema.TableEntryImpl(CalciteSchema schema,
String name,
Table table,
com.google.common.collect.ImmutableList<String> sqls)
Creates a TableEntryImpl.
|
| Modifier and Type | Method and Description |
|---|---|
static RelOptTableImpl |
RelOptTableImpl.create(RelOptSchema schema,
RelDataType rowType,
Table table) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TableFactory<T extends Table>
Factory for
Table objects. |
| Modifier and Type | Interface and Description |
|---|---|
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 |
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 planner node. |
| 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 |
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 |
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 |
|---|---|
com.google.common.collect.ImmutableList<Table> |
StarTable.tables |
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
static StarTable |
StarTable.of(Lattice lattice,
List<Table> tables)
Creates a StarTable and registers it in a schema.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.