class SimpleCalciteSchema extends CalciteSchema
CalciteSchema
that maintains minimal state.CalciteSchema.Entry, CalciteSchema.FunctionEntry, CalciteSchema.FunctionEntryImpl, CalciteSchema.LatticeEntry, CalciteSchema.LatticeEntryImpl, CalciteSchema.TableEntry, CalciteSchema.TableEntryImplfunctionMap, functionNames, latticeMap, name, nullaryFunctionMap, schema, subSchemaMap, tableMap| Modifier | Constructor and Description |
|---|---|
(package private) |
SimpleCalciteSchema(CalciteSchema parent,
Schema schema,
String name)
Creates a SimpleCalciteSchema.
|
private |
SimpleCalciteSchema(CalciteSchema parent,
Schema schema,
String name,
NameMap<CalciteSchema> subSchemaMap,
NameMap<CalciteSchema.TableEntry> tableMap,
NameMap<CalciteSchema.LatticeEntry> latticeMap,
NameMultimap<CalciteSchema.FunctionEntry> functionMap,
NameSet functionNames,
NameMap<CalciteSchema.FunctionEntry> nullaryFunctionMap,
List<? extends List<String>> path) |
| Modifier and Type | Method and Description |
|---|---|
CalciteSchema |
add(String name,
Schema schema)
Adds a child schema of this schema.
|
protected void |
addImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder)
Adds implicit function names to a builder.
|
protected void |
addImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<Function> builder,
String name,
boolean caseSensitive)
Adds implicit functions to a builder.
|
protected void |
addImplicitSubSchemaToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,CalciteSchema> builder)
Adds implicit sub-schemas to a builder.
|
protected void |
addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,Table> builder)
Adds implicit table functions to a builder.
|
protected void |
addImplicitTableToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder)
Adds implicit tables to a builder.
|
protected CalciteSchema |
getImplicitSubSchema(String schemaName,
boolean caseSensitive)
Returns a sub-schema with a given name that is defined implicitly
(that is, by the underlying
Schema object, not explicitly
by a call to CalciteSchema.add(String, Schema)), or null. |
protected CalciteSchema.TableEntry |
getImplicitTable(String tableName,
boolean caseSensitive)
Returns a table with a given name that is defined implicitly
(that is, by the underlying
Schema object, not explicitly
by a call to CalciteSchema.add(String, Table)), or null. |
protected CalciteSchema.TableEntry |
getImplicitTableBasedOnNullaryFunction(String tableName,
boolean caseSensitive)
Returns table function with a given name and zero arguments that is
defined implicitly (that is, by the underlying
Schema object,
not explicitly by a call to CalciteSchema.add(String, Function)), or null. |
protected boolean |
isCacheEnabled() |
void |
setCache(boolean cache) |
protected CalciteSchema |
snapshot(CalciteSchema parent,
SchemaVersion version)
Returns a snapshot representation of this CalciteSchema.
|
add, add, createRootSchema, createRootSchema, createRootSchema, createSnapshot, find, find, from, getFunctionNames, getFunctions, getLatticeMap, getName, getPath, getSubSchema, getSubSchemaMap, getTable, getTableBasedOnNullaryFunction, getTableBySql, getTableNames, getTablesBasedOnNullaryFunctions, isRoot, path, plus, removeFunction, removeSubSchema, removeTable, root, tableEntrySimpleCalciteSchema(CalciteSchema parent, Schema schema, String name)
Use CalciteSchema.createRootSchema(boolean)
or add(String, Schema).
private SimpleCalciteSchema(CalciteSchema parent, Schema schema, String name, NameMap<CalciteSchema> subSchemaMap, NameMap<CalciteSchema.TableEntry> tableMap, NameMap<CalciteSchema.LatticeEntry> latticeMap, NameMultimap<CalciteSchema.FunctionEntry> functionMap, NameSet functionNames, NameMap<CalciteSchema.FunctionEntry> nullaryFunctionMap, List<? extends List<String>> path)
public void setCache(boolean cache)
setCache in class CalciteSchemapublic CalciteSchema add(String name, Schema schema)
CalciteSchemaadd in class CalciteSchemaprotected CalciteSchema getImplicitSubSchema(String schemaName, boolean caseSensitive)
CalciteSchemaSchema object, not explicitly
by a call to CalciteSchema.add(String, Schema)), or null.getImplicitSubSchema in class CalciteSchemaprotected CalciteSchema.TableEntry getImplicitTable(String tableName, boolean caseSensitive)
CalciteSchemaSchema object, not explicitly
by a call to CalciteSchema.add(String, Table)), or null.getImplicitTable in class CalciteSchemaprotected void addImplicitSubSchemaToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,CalciteSchema> builder)
CalciteSchemaaddImplicitSubSchemaToBuilder in class CalciteSchemaprotected void addImplicitTableToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder)
CalciteSchemaaddImplicitTableToBuilder in class CalciteSchemaprotected void addImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<Function> builder, String name, boolean caseSensitive)
CalciteSchemaaddImplicitFunctionsToBuilder in class CalciteSchemaprotected void addImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> builder)
CalciteSchemaaddImplicitFuncNamesToBuilder in class CalciteSchemaprotected void addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String,Table> builder)
CalciteSchemaaddImplicitTablesBasedOnNullaryFunctionsToBuilder in class CalciteSchemaprotected CalciteSchema.TableEntry getImplicitTableBasedOnNullaryFunction(String tableName, boolean caseSensitive)
CalciteSchemaSchema object,
not explicitly by a call to CalciteSchema.add(String, Function)), or null.getImplicitTableBasedOnNullaryFunction in class CalciteSchemaprotected CalciteSchema snapshot(CalciteSchema parent, SchemaVersion version)
CalciteSchemasnapshot in class CalciteSchemaprotected boolean isCacheEnabled()
isCacheEnabled in class CalciteSchemaCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.