Package org.apache.calcite.jdbc
Class HazelcastRootCalciteSchema
java.lang.Object
org.apache.calcite.jdbc.CalciteSchema
org.apache.calcite.jdbc.HazelcastRootCalciteSchema
public final class HazelcastRootCalciteSchema
extends org.apache.calcite.jdbc.CalciteSchema
Root Calcite schema.
Calcite uses Schema to store actual objects, and
CalciteSchema as a wrapper. This class is a straightforward implementation of the former.
Located in the Calcite package because the required super constructor is package-private.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.jdbc.CalciteSchema
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 -
Field Summary
Fields inherited from class org.apache.calcite.jdbc.CalciteSchema
functionMap, functionNames, latticeMap, name, nullaryFunctionMap, schema, subSchemaMap, tableMap, typeMap -
Constructor Summary
ConstructorsConstructorDescriptionHazelcastRootCalciteSchema(com.hazelcast.jet.sql.impl.schema.HazelcastSchema schema) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.jdbc.CalciteSchemaprotected voidaddImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) protected voidaddImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<org.apache.calcite.schema.Function> arg0, String arg1, boolean arg2) protected voidaddImplicitSubSchemaToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String, org.apache.calcite.jdbc.CalciteSchema> arg0) protected voidaddImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String, org.apache.calcite.schema.Table> arg0) protected voidaddImplicitTableToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) protected voidaddImplicitTypeNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) org.apache.calcite.jdbc.CalciteSchemacreateSnapshot(org.apache.calcite.schema.SchemaVersion version) protected org.apache.calcite.jdbc.CalciteSchemagetImplicitSubSchema(String arg0, boolean arg1) protected org.apache.calcite.jdbc.CalciteSchema.TableEntrygetImplicitTable(String arg0, boolean arg1) protected org.apache.calcite.jdbc.CalciteSchema.TableEntrygetImplicitTableBasedOnNullaryFunction(String arg0, boolean arg1) protected org.apache.calcite.jdbc.CalciteSchema.TypeEntrygetImplicitType(String arg0, boolean arg1) protected booleanvoidsetCache(boolean arg0) protected org.apache.calcite.jdbc.CalciteSchemasnapshot(org.apache.calcite.jdbc.CalciteSchema arg0, org.apache.calcite.schema.SchemaVersion arg1) Methods inherited from class org.apache.calcite.jdbc.CalciteSchema
add, add, add, createRootSchema, createRootSchema, createRootSchema, createRootSchema, 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
-
Constructor Details
-
HazelcastRootCalciteSchema
public HazelcastRootCalciteSchema(com.hazelcast.jet.sql.impl.schema.HazelcastSchema schema)
-
-
Method Details
-
createSnapshot
public org.apache.calcite.jdbc.CalciteSchema createSnapshot(org.apache.calcite.schema.SchemaVersion version) - Overrides:
createSnapshotin classorg.apache.calcite.jdbc.CalciteSchema
-
setCache
public void setCache(boolean arg0) - Specified by:
setCachein classorg.apache.calcite.jdbc.CalciteSchema
-
add
public org.apache.calcite.jdbc.CalciteSchema add(String arg0, org.apache.calcite.schema.Schema arg1) - Specified by:
addin classorg.apache.calcite.jdbc.CalciteSchema
-
getImplicitSubSchema
- Specified by:
getImplicitSubSchemain classorg.apache.calcite.jdbc.CalciteSchema
-
getImplicitTable
protected org.apache.calcite.jdbc.CalciteSchema.TableEntry getImplicitTable(String arg0, boolean arg1) - Specified by:
getImplicitTablein classorg.apache.calcite.jdbc.CalciteSchema
-
getImplicitType
protected org.apache.calcite.jdbc.CalciteSchema.TypeEntry getImplicitType(String arg0, boolean arg1) - Specified by:
getImplicitTypein classorg.apache.calcite.jdbc.CalciteSchema
-
addImplicitSubSchemaToBuilder
protected void addImplicitSubSchemaToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String, org.apache.calcite.jdbc.CalciteSchema> arg0) - Specified by:
addImplicitSubSchemaToBuilderin classorg.apache.calcite.jdbc.CalciteSchema
-
addImplicitTableToBuilder
protected void addImplicitTableToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) - Specified by:
addImplicitTableToBuilderin classorg.apache.calcite.jdbc.CalciteSchema
-
addImplicitFunctionsToBuilder
protected void addImplicitFunctionsToBuilder(com.google.common.collect.ImmutableList.Builder<org.apache.calcite.schema.Function> arg0, String arg1, boolean arg2) - Specified by:
addImplicitFunctionsToBuilderin classorg.apache.calcite.jdbc.CalciteSchema
-
addImplicitFuncNamesToBuilder
protected void addImplicitFuncNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) - Specified by:
addImplicitFuncNamesToBuilderin classorg.apache.calcite.jdbc.CalciteSchema
-
addImplicitTypeNamesToBuilder
protected void addImplicitTypeNamesToBuilder(com.google.common.collect.ImmutableSortedSet.Builder<String> arg0) - Specified by:
addImplicitTypeNamesToBuilderin classorg.apache.calcite.jdbc.CalciteSchema
-
addImplicitTablesBasedOnNullaryFunctionsToBuilder
protected void addImplicitTablesBasedOnNullaryFunctionsToBuilder(com.google.common.collect.ImmutableSortedMap.Builder<String, org.apache.calcite.schema.Table> arg0) - Specified by:
addImplicitTablesBasedOnNullaryFunctionsToBuilderin classorg.apache.calcite.jdbc.CalciteSchema
-
getImplicitTableBasedOnNullaryFunction
protected org.apache.calcite.jdbc.CalciteSchema.TableEntry getImplicitTableBasedOnNullaryFunction(String arg0, boolean arg1) - Specified by:
getImplicitTableBasedOnNullaryFunctionin classorg.apache.calcite.jdbc.CalciteSchema
-
snapshot
protected org.apache.calcite.jdbc.CalciteSchema snapshot(org.apache.calcite.jdbc.CalciteSchema arg0, org.apache.calcite.schema.SchemaVersion arg1) - Specified by:
snapshotin classorg.apache.calcite.jdbc.CalciteSchema
-
isCacheEnabled
protected boolean isCacheEnabled()- Specified by:
isCacheEnabledin classorg.apache.calcite.jdbc.CalciteSchema
-