Class BeamCalciteSchema
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sql.impl.BeamCalciteSchema
-
- All Implemented Interfaces:
org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
public class BeamCalciteSchema extends java.lang.Object implements org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaA CalciteSchemathat corresponds to aTableProviderorMetaStore. In Beam SQL, a DATABASE refers to aBeamCalciteSchema.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.linq4j.tree.ExpressiongetExpression(@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaPlus parentSchema, java.lang.String name)java.util.Set<java.lang.String>getFunctionNames()java.util.Collection<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Function>getFunctions(java.lang.String name)java.util.Map<java.lang.String,java.lang.String>getPipelineOptions()@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemagetSubSchema(java.lang.String name)If this is the root schema (in other words, aCatalogManager), the sub schema will be aCatalog's metastore.java.util.Set<java.lang.String>getSubSchemaNames()@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.TablegetTable(java.lang.String name)java.util.Set<java.lang.String>getTableNames()TableProvidergetTableProvider()java.util.Collection<Table>getTables()@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.type.RelProtoDataTypegetType(java.lang.String name)java.util.Set<java.lang.String>getTypeNames()booleanisMutable()java.lang.Stringname()voidremoveAllPipelineOptions()voidremovePipelineOption(java.lang.String key)voidsetPipelineOption(java.lang.String key, java.lang.String value)org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schemasnapshot(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaVersion version)
-
-
-
Method Detail
-
name
public java.lang.String name()
-
getTableProvider
public TableProvider getTableProvider()
-
getPipelineOptions
public java.util.Map<java.lang.String,java.lang.String> getPipelineOptions()
-
setPipelineOption
public void setPipelineOption(java.lang.String key, java.lang.String value)
-
removePipelineOption
public void removePipelineOption(java.lang.String key)
-
removeAllPipelineOptions
public void removeAllPipelineOptions()
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
snapshot
public org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema snapshot(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaVersion version)
- Specified by:
snapshotin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getExpression
public org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.linq4j.tree.Expression getExpression(@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaPlus parentSchema, java.lang.String name)- Specified by:
getExpressionin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getTableNames
public java.util.Set<java.lang.String> getTableNames()
- Specified by:
getTableNamesin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getType
public @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.type.RelProtoDataType getType(java.lang.String name)
- Specified by:
getTypein interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getTypeNames
public java.util.Set<java.lang.String> getTypeNames()
- Specified by:
getTypeNamesin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getTable
public @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Table getTable(java.lang.String name)
- Specified by:
getTablein interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getTables
public java.util.Collection<Table> getTables()
-
getFunctionNames
public java.util.Set<java.lang.String> getFunctionNames()
- Specified by:
getFunctionNamesin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getFunctions
public java.util.Collection<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Function> getFunctions(java.lang.String name)
- Specified by:
getFunctionsin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getSubSchemaNames
public java.util.Set<java.lang.String> getSubSchemaNames()
- Specified by:
getSubSchemaNamesin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
getSubSchema
public @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema getSubSchema(java.lang.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
TableProviderimplementation.- Specified by:
getSubSchemain interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
-