Package org.apache.calcite.adapter.clone
Class CloneSchema
java.lang.Object
org.apache.calcite.schema.impl.AbstractSchema
org.apache.calcite.adapter.clone.CloneSchema
- All Implemented Interfaces:
Schema
Schema that contains in-memory copies of tables from a JDBC schema.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
Schema.TableType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Table
createCloneTable
(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, @Nullable List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source) Deprecated.static <T> Table
createCloneTable
(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, List<RelCollation> collations, @Nullable List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source) Returns a map of tables in this schema by name.Methods inherited from class org.apache.calcite.schema.impl.AbstractSchema
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshot
-
Constructor Details
-
CloneSchema
Creates a CloneSchema.- Parameters:
sourceSchema
- JDBC data source
-
-
Method Details
-
getTableMap
Description copied from class:AbstractSchema
Returns a map of tables in this schema by name.The implementations of
AbstractSchema.getTableNames()
andAbstractSchema.getTable(String)
depend on this map. The default implementation of this method returns the empty map. Override this method to change their behavior.- Overrides:
getTableMap
in classAbstractSchema
- Returns:
- Map of tables in this schema by name
-
createCloneTable
@Deprecated public static <T> Table createCloneTable(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, @Nullable List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source) Deprecated. -
createCloneTable
public static <T> Table createCloneTable(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, List<RelCollation> collations, @Nullable List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source)
-