public class DynamicSchema extends org.apache.calcite.jdbc.CalciteSchema implements AutoCloseable
org.apache.calcite.jdbc.CalciteSchema.Entry, org.apache.calcite.jdbc.CalciteSchema.FunctionEntry, org.apache.calcite.jdbc.CalciteSchema.FunctionEntryImpl, org.apache.calcite.jdbc.CalciteSchema.LatticeEntry, org.apache.calcite.jdbc.CalciteSchema.LatticeEntryImpl, org.apache.calcite.jdbc.CalciteSchema.TableEntry, org.apache.calcite.jdbc.CalciteSchema.TableEntryImpl, org.apache.calcite.jdbc.CalciteSchema.TypeEntry, org.apache.calcite.jdbc.CalciteSchema.TypeEntryImpl
Constructor and Description |
---|
DynamicSchema(org.apache.calcite.jdbc.CalciteSchema parent,
org.apache.calcite.schema.Schema schema,
String name) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.jdbc.CalciteSchema |
add(String arg0,
org.apache.calcite.schema.Schema arg1) |
protected void |
addImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) |
protected void |
addImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<org.apache.calcite.schema.Function> arg0,
String arg1,
boolean arg2) |
protected void |
addImplicitSubSchemaToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,org.apache.calcite.jdbc.CalciteSchema> arg0) |
protected void |
addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,org.apache.calcite.schema.Table> arg0) |
protected void |
addImplicitTableToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) |
protected void |
addImplicitTypeNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) |
void |
close() |
static org.apache.calcite.schema.SchemaPlus |
createRootSchema(StoragePluginRegistry storages,
SchemaConfig schemaConfig,
AliasRegistryProvider aliasRegistryProvider) |
protected org.apache.calcite.jdbc.CalciteSchema |
getImplicitSubSchema(String schemaName,
boolean caseSensitive) |
protected org.apache.calcite.jdbc.CalciteSchema.TableEntry |
getImplicitTable(String arg0,
boolean arg1) |
protected org.apache.calcite.jdbc.CalciteSchema.TableEntry |
getImplicitTableBasedOnNullaryFunction(String arg0,
boolean arg1) |
protected org.apache.calcite.jdbc.CalciteSchema.TypeEntry |
getImplicitType(String arg0,
boolean arg1) |
protected boolean |
isCacheEnabled() |
void |
setCache(boolean arg0) |
protected org.apache.calcite.jdbc.CalciteSchema |
snapshot(org.apache.calcite.jdbc.CalciteSchema arg0,
org.apache.calcite.schema.SchemaVersion arg1) |
add, add, add, createRootSchema, createRootSchema, createRootSchema, createRootSchema, createSnapshot, find, find, from, getFunctionNames, getFunctions, getLatticeMap, getName, getPath, getSubSchema, getSubSchemaMap, getTable, getTableBasedOnNullaryFunction, getTableBySql, getTableNames, getTablesBasedOnNullaryFunctions, getType, getTypeNames, isRoot, path, plus, removeFunction, removeSubSchema, removeTable, removeType, root, tableEntry, typeEntry
public DynamicSchema(org.apache.calcite.jdbc.CalciteSchema parent, org.apache.calcite.schema.Schema schema, String name)
protected org.apache.calcite.jdbc.CalciteSchema getImplicitSubSchema(String schemaName, boolean caseSensitive)
public static org.apache.calcite.schema.SchemaPlus createRootSchema(StoragePluginRegistry storages, SchemaConfig schemaConfig, AliasRegistryProvider aliasRegistryProvider)
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void setCache(boolean arg0)
setCache
in class org.apache.calcite.jdbc.CalciteSchema
public org.apache.calcite.jdbc.CalciteSchema add(String arg0, org.apache.calcite.schema.Schema arg1)
add
in class org.apache.calcite.jdbc.CalciteSchema
protected org.apache.calcite.jdbc.CalciteSchema.TableEntry getImplicitTable(String arg0, boolean arg1)
getImplicitTable
in class org.apache.calcite.jdbc.CalciteSchema
protected org.apache.calcite.jdbc.CalciteSchema.TypeEntry getImplicitType(String arg0, boolean arg1)
getImplicitType
in class org.apache.calcite.jdbc.CalciteSchema
protected void addImplicitSubSchemaToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,org.apache.calcite.jdbc.CalciteSchema> arg0)
addImplicitSubSchemaToBuilder
in class org.apache.calcite.jdbc.CalciteSchema
protected void addImplicitTableToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0)
addImplicitTableToBuilder
in class org.apache.calcite.jdbc.CalciteSchema
protected void addImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<org.apache.calcite.schema.Function> arg0, String arg1, boolean arg2)
addImplicitFunctionsToBuilder
in class org.apache.calcite.jdbc.CalciteSchema
protected void addImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0)
addImplicitFuncNamesToBuilder
in class org.apache.calcite.jdbc.CalciteSchema
protected void addImplicitTypeNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0)
addImplicitTypeNamesToBuilder
in class org.apache.calcite.jdbc.CalciteSchema
protected void addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,org.apache.calcite.schema.Table> arg0)
addImplicitTablesBasedOnNullaryFunctionsToBuilder
in class org.apache.calcite.jdbc.CalciteSchema
protected org.apache.calcite.jdbc.CalciteSchema.TableEntry getImplicitTableBasedOnNullaryFunction(String arg0, boolean arg1)
getImplicitTableBasedOnNullaryFunction
in class org.apache.calcite.jdbc.CalciteSchema
protected org.apache.calcite.jdbc.CalciteSchema snapshot(org.apache.calcite.jdbc.CalciteSchema arg0, org.apache.calcite.schema.SchemaVersion arg1)
snapshot
in class org.apache.calcite.jdbc.CalciteSchema
protected boolean isCacheEnabled()
isCacheEnabled
in class org.apache.calcite.jdbc.CalciteSchema
Copyright © 1970 The Apache Software Foundation. All rights reserved.