public class CloneSchema extends AbstractSchema
| Modifier and Type | Class and Description |
|---|---|
static class |
CloneSchema.Factory
Schema factory that creates a
CloneSchema. |
Schema.TableType| Modifier and Type | Field and Description |
|---|---|
private SchemaPlus |
sourceSchema |
| Constructor and Description |
|---|
CloneSchema(SchemaPlus sourceSchema)
Creates a CloneSchema.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Table |
createCloneTable(JavaTypeFactory typeFactory,
RelProtoDataType protoRowType,
List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList,
Enumerable<T> source)
Deprecated.
|
static <T> Table |
createCloneTable(JavaTypeFactory typeFactory,
RelProtoDataType protoRowType,
List<RelCollation> collations,
List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList,
Enumerable<T> source) |
private Table |
createCloneTable(QueryProvider queryProvider,
QueryableTable sourceTable,
String name) |
protected Map<String,Table> |
getTableMap()
Returns a map of tables in this schema by name.
|
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, isMutable, snapshotprivate final SchemaPlus sourceSchema
public CloneSchema(SchemaPlus sourceSchema)
sourceSchema - JDBC data sourceprotected Map<String,Table> getTableMap()
AbstractSchemaThe implementations of AbstractSchema.getTableNames()
and AbstractSchema.getTable(String) depend on this map.
The default implementation of this method returns the empty map.
Override this method to change their behavior.
getTableMap in class AbstractSchemaprivate Table createCloneTable(QueryProvider queryProvider, QueryableTable sourceTable, String name)
@Deprecated public static <T> Table createCloneTable(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source)
public static <T> Table createCloneTable(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, List<RelCollation> collations, List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.