Schema.TableType| Constructor and Description |
|---|
DelegatingSchema(Schema schema)
Creates a DelegatingSchema.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.linq4j.tree.Expression |
getExpression(@Nullable SchemaPlus parentSchema,
String name)
Returns the expression by which this schema can be referenced in generated
code.
|
Set<String> |
getFunctionNames()
Returns the names of the functions in this schema.
|
Collection<Function> |
getFunctions(String name)
Returns a list of functions in this schema with the given name, or
an empty list if there is no such function.
|
@Nullable Schema |
getSubSchema(String name)
Returns a sub-schema with a given name, or null.
|
Set<String> |
getSubSchemaNames()
Returns the names of this schema's child schemas.
|
@Nullable Table |
getTable(String name)
Returns a table with a given name, or null if not found.
|
Set<String> |
getTableNames()
Returns the names of the tables in this schema.
|
@Nullable RelProtoDataType |
getType(String name)
Returns a type with a given name, or null if not found.
|
Set<String> |
getTypeNames()
Returns the names of the types in this schema.
|
boolean |
isMutable()
Returns whether the user is allowed to create new tables, functions
and sub-schemas in this schema, in addition to those returned automatically
by methods such as
Schema.getTable(String). |
Schema |
snapshot(SchemaVersion version)
Returns the snapshot of this schema as of the specified time.
|
String |
toString() |
protected final Schema schema
public DelegatingSchema(Schema schema)
schema - Underlying schemapublic boolean isMutable()
SchemaSchema.getTable(String).
Even if this method returns true, the maps are not modified. Calcite stores the defined objects in a wrapper object.
public Schema snapshot(SchemaVersion version)
Schemapublic org.apache.calcite.linq4j.tree.Expression getExpression(@Nullable SchemaPlus parentSchema, String name)
SchemagetExpression in interface SchemaparentSchema - Parent schemaname - Name of this schemapublic @Nullable Table getTable(String name)
Schemapublic Set<String> getTableNames()
SchemagetTableNames in interface Schemapublic @Nullable RelProtoDataType getType(String name)
Schemapublic Set<String> getTypeNames()
SchemagetTypeNames in interface Schemapublic Collection<Function> getFunctions(String name)
SchemagetFunctions in interface Schemaname - Name of functionpublic Set<String> getFunctionNames()
SchemagetFunctionNames in interface Schemapublic @Nullable Schema getSubSchema(String name)
SchemagetSubSchema in interface Schemaname - Sub-schema namepublic Set<String> getSubSchemaNames()
SchemagetSubSchemaNames in interface SchemaCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.