Package org.apache.calcite.jdbc
Class CalciteRootSchema
java.lang.Object
org.apache.calcite.jdbc.CalciteSchema
org.apache.calcite.jdbc.CalciteRootSchema
Deprecated.
Root schema.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.jdbc.CalciteSchema
CalciteSchema.Entry, CalciteSchema.FunctionEntry, CalciteSchema.FunctionEntryImpl, CalciteSchema.LatticeEntry, CalciteSchema.LatticeEntryImpl, CalciteSchema.TableEntry, CalciteSchema.TableEntryImpl, CalciteSchema.TypeEntry, CalciteSchema.TypeEntryImpl -
Field Summary
Fields inherited from class org.apache.calcite.jdbc.CalciteSchema
functionMap, functionNames, latticeMap, name, nullaryFunctionMap, schema, subSchemaMap, tableMap, typeMap -
Method Summary
Modifier and TypeMethodDescriptionAdds a child schema of this schema.protected voidaddImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder) Adds implicit function names to a builder.protected voidaddImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<Function> builder, String name, boolean caseSensitive) Adds implicit functions to a builder.protected voidaddImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String, Table> builder) Adds implicit table functions to a builder.protected voidaddImplicitTypeNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder) Adds implicit type names to a builder.protected CalciteSchemacreateSubSchema(Schema schema, String name) Creates a sub-schema with a given name that is defined implicitly.protected <S> Lookup<S>enhanceLookup(Lookup<S> lookup) The derived class is able to enhance the lookup e.g.protected @Nullable CalciteSchema.TableEntrygetImplicitTableBasedOnNullaryFunction(String tableName, boolean caseSensitive) Returns table function with a given name and zero arguments that is defined implicitly (that is, by the underlyingSchemaobject, not explicitly by a call toCalciteSchema.add(String, Function)), or null.protected @Nullable CalciteSchema.TypeEntrygetImplicitType(String name, boolean caseSensitive) Returns a type with a given name that is defined implicitly (that is, by the underlyingSchemaobject, not explicitly by a call toCalciteSchema.add(String, RelProtoDataType)), or null.protected booleanbooleanremoveFunction(String name) booleanremoveTable(String name) voidsetCache(boolean cache) protected CalciteSchemasnapshot(@Nullable CalciteSchema parent, SchemaVersion version) Returns a snapshot representation of this CalciteSchema.Methods inherited from class org.apache.calcite.jdbc.CalciteSchema
add, add, add, createRootSchema, createRootSchema, createRootSchema, createRootSchema, createSnapshot, find, find, from, getFunctionNames, getFunctions, getLatticeMap, getName, getPath, getSubSchema, getSubSchemaMap, getTable, getTableBasedOnNullaryFunction, getTableBySql, getTableNames, getTableNames, getTablesBasedOnNullaryFunctions, getType, getTypeNames, isRoot, path, plus, removeSubSchema, removeType, root, subSchemas, tableEntry, tables, typeEntry
-
Method Details
-
setCache
public void setCache(boolean cache) - Specified by:
setCachein classCalciteSchema
-
isCacheEnabled
protected boolean isCacheEnabled()- Specified by:
isCacheEnabledin classCalciteSchema
-
createSubSchema
Description copied from class:CalciteSchemaCreates a sub-schema with a given name that is defined implicitly.- Specified by:
createSubSchemain classCalciteSchema
-
enhanceLookup
Description copied from class:CalciteSchemaThe derived class is able to enhance the lookup e.g. by introducing a cache.- Overrides:
enhanceLookupin classCalciteSchema
-
add
Adds a child schema of this schema.- Specified by:
addin classCalciteSchema
-
getImplicitType
Description copied from class:CalciteSchemaReturns a type with a given name that is defined implicitly (that is, by the underlyingSchemaobject, not explicitly by a call toCalciteSchema.add(String, RelProtoDataType)), or null.- Specified by:
getImplicitTypein classCalciteSchema
-
addImplicitFunctionsToBuilder
protected void addImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<Function> builder, String name, boolean caseSensitive) Description copied from class:CalciteSchemaAdds implicit functions to a builder.- Specified by:
addImplicitFunctionsToBuilderin classCalciteSchema
-
addImplicitFuncNamesToBuilder
protected void addImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder) Description copied from class:CalciteSchemaAdds implicit function names to a builder.- Specified by:
addImplicitFuncNamesToBuilderin classCalciteSchema
-
addImplicitTypeNamesToBuilder
protected void addImplicitTypeNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder) Description copied from class:CalciteSchemaAdds implicit type names to a builder.- Specified by:
addImplicitTypeNamesToBuilderin classCalciteSchema
-
addImplicitTablesBasedOnNullaryFunctionsToBuilder
protected void addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String, Table> builder) Description copied from class:CalciteSchemaAdds implicit table functions to a builder.- Specified by:
addImplicitTablesBasedOnNullaryFunctionsToBuilderin classCalciteSchema
-
getImplicitTableBasedOnNullaryFunction
protected @Nullable CalciteSchema.TableEntry getImplicitTableBasedOnNullaryFunction(String tableName, boolean caseSensitive) Description copied from class:CalciteSchemaReturns table function with a given name and zero arguments that is defined implicitly (that is, by the underlyingSchemaobject, not explicitly by a call toCalciteSchema.add(String, Function)), or null.- Specified by:
getImplicitTableBasedOnNullaryFunctionin classCalciteSchema
-
snapshot
Description copied from class:CalciteSchemaReturns a snapshot representation of this CalciteSchema.- Specified by:
snapshotin classCalciteSchema
-
removeTable
- Overrides:
removeTablein classCalciteSchema
-
removeFunction
- Overrides:
removeFunctionin classCalciteSchema
-