Class BeamCalciteSchema
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.BeamCalciteSchema
- All Implemented Interfaces:
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
public class BeamCalciteSchema
extends Object
implements org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
Adapter from
TableProvider
to Schema
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema.TableType
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.linq4j.tree.Expression
getExpression
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaPlus parentSchema, String name) Collection
<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function> getFunctions
(String name) org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
getSubSchema
(String name) If this is the root schema (in other words, aCatalogManager
), the sub schema will be aCatalog
's metastore.org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Table
@Nullable org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelProtoDataType
boolean
void
void
void
setPipelineOption
(String key, String value) org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
snapshot
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaVersion version)
-
Method Details
-
getTableProvider
-
getCatalogManager
-
getPipelineOptions
-
setPipelineOption
-
removePipelineOption
-
removeAllPipelineOptions
public void removeAllPipelineOptions() -
isMutable
public boolean isMutable()- Specified by:
isMutable
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
snapshot
public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema snapshot(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaVersion version) - Specified by:
snapshot
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getExpression
public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.linq4j.tree.Expression getExpression(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaPlus parentSchema, String name) - Specified by:
getExpression
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getTableNames
- Specified by:
getTableNames
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getType
public @Nullable org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelProtoDataType getType(String name) - Specified by:
getType
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getTypeNames
- Specified by:
getTypeNames
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getTable
- Specified by:
getTable
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getFunctionNames
- Specified by:
getFunctionNames
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getFunctions
public Collection<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Function> getFunctions(String name) - Specified by:
getFunctions
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getSubSchemaNames
- Specified by:
getSubSchemaNames
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
getSubSchema
public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema getSubSchema(String name) If this is the root schema (in other words, aCatalogManager
), the sub schema will be aCatalog
's metastore.Otherwise, the sub-schema is derived from the
TableProvider
implementation.- Specified by:
getSubSchema
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Schema
-
resolveMetastore
-