public class DDLSchema extends Object implements org.apache.calcite.schema.Schema, org.apache.calcite.schema.SchemaPlus
Constructor and Description |
---|
DDLSchema() |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
org.apache.calcite.schema.Function function) |
void |
add(String name,
org.apache.calcite.materialize.Lattice lattice) |
org.apache.calcite.schema.SchemaPlus |
add(String name,
org.apache.calcite.schema.Schema schema) |
void |
add(String name,
org.apache.calcite.schema.Table table) |
boolean |
contentsHaveChangedSince(long lastCheck,
long now) |
org.apache.calcite.linq4j.tree.Expression |
getExpression(org.apache.calcite.schema.SchemaPlus parentSchema,
String name) |
Set<String> |
getFunctionNames() |
Collection<org.apache.calcite.schema.Function> |
getFunctions(String name) |
String |
getName() |
org.apache.calcite.schema.SchemaPlus |
getParentSchema() |
org.apache.calcite.schema.SchemaPlus |
getSubSchema(String name) |
Set<String> |
getSubSchemaNames() |
org.apache.calcite.schema.Table |
getTable(String name) |
Set<String> |
getTableNames() |
boolean |
isCacheEnabled() |
boolean |
isMutable() |
void |
setCacheEnabled(boolean cache) |
void |
setPath(com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<String>> path) |
org.apache.calcite.schema.Schema |
snapshot(long now) |
org.apache.calcite.schema.Schema |
snapshot(org.apache.calcite.schema.SchemaVersion version) |
<T> T |
unwrap(Class<T> clazz) |
public org.apache.calcite.schema.Table getTable(String name)
getTable
in interface org.apache.calcite.schema.Schema
public Set<String> getTableNames()
getTableNames
in interface org.apache.calcite.schema.Schema
public Collection<org.apache.calcite.schema.Function> getFunctions(String name)
getFunctions
in interface org.apache.calcite.schema.Schema
public Set<String> getFunctionNames()
getFunctionNames
in interface org.apache.calcite.schema.Schema
public org.apache.calcite.schema.SchemaPlus getParentSchema()
getParentSchema
in interface org.apache.calcite.schema.SchemaPlus
public String getName()
getName
in interface org.apache.calcite.schema.SchemaPlus
public org.apache.calcite.schema.SchemaPlus getSubSchema(String name)
getSubSchema
in interface org.apache.calcite.schema.Schema
getSubSchema
in interface org.apache.calcite.schema.SchemaPlus
public org.apache.calcite.schema.SchemaPlus add(String name, org.apache.calcite.schema.Schema schema)
add
in interface org.apache.calcite.schema.SchemaPlus
public void add(String name, org.apache.calcite.schema.Table table)
add
in interface org.apache.calcite.schema.SchemaPlus
public void add(String name, org.apache.calcite.schema.Function function)
add
in interface org.apache.calcite.schema.SchemaPlus
public void add(String name, org.apache.calcite.materialize.Lattice lattice)
add
in interface org.apache.calcite.schema.SchemaPlus
public Set<String> getSubSchemaNames()
getSubSchemaNames
in interface org.apache.calcite.schema.Schema
public org.apache.calcite.linq4j.tree.Expression getExpression(org.apache.calcite.schema.SchemaPlus parentSchema, String name)
getExpression
in interface org.apache.calcite.schema.Schema
public boolean isMutable()
isMutable
in interface org.apache.calcite.schema.Schema
isMutable
in interface org.apache.calcite.schema.SchemaPlus
public org.apache.calcite.schema.Schema snapshot(org.apache.calcite.schema.SchemaVersion version)
snapshot
in interface org.apache.calcite.schema.Schema
public <T> T unwrap(Class<T> clazz)
unwrap
in interface org.apache.calcite.schema.SchemaPlus
public void setCacheEnabled(boolean cache)
setCacheEnabled
in interface org.apache.calcite.schema.SchemaPlus
public boolean isCacheEnabled()
isCacheEnabled
in interface org.apache.calcite.schema.SchemaPlus
public void setPath(com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<String>> path)
setPath
in interface org.apache.calcite.schema.SchemaPlus
public boolean contentsHaveChangedSince(long lastCheck, long now)
public org.apache.calcite.schema.Schema snapshot(long now)
Copyright © 2013–2017 Alibaba Group. All rights reserved.