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,
java.util.List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList,
Enumerable<T> source)
Deprecated.
|
static <T> Table |
createCloneTable(JavaTypeFactory typeFactory,
RelProtoDataType protoRowType,
java.util.List<RelCollation> collations,
java.util.List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList,
Enumerable<T> source) |
private Table |
createCloneTable(QueryProvider queryProvider,
QueryableTable sourceTable,
java.lang.String name) |
protected java.util.Map<java.lang.String,Table> |
getTableMap()
Returns a map of tables in this schema by name.
|
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshot
private final SchemaPlus sourceSchema
public CloneSchema(SchemaPlus sourceSchema)
sourceSchema
- JDBC data sourceprotected java.util.Map<java.lang.String,Table> getTableMap()
AbstractSchema
The 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 AbstractSchema
private Table createCloneTable(QueryProvider queryProvider, QueryableTable sourceTable, java.lang.String name)
@Deprecated public static <T> Table createCloneTable(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, java.util.List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source)
public static <T> Table createCloneTable(JavaTypeFactory typeFactory, RelProtoDataType protoRowType, java.util.List<RelCollation> collations, java.util.List<org.apache.calcite.avatica.ColumnMetaData.Rep> repList, Enumerable<T> source)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.