Class CatalogManagerSchema
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sql.impl.CatalogManagerSchema
-
- All Implemented Interfaces:
org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
public class CatalogManagerSchema extends java.lang.Object implements org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemaA CalciteSchemathat corresponds to aCatalogManager. This is typically the root node of a pipeline. Child schemas are of typeCatalogSchema.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Catalog>catalogs()JdbcConnectionconnection()voidcreateCatalog(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier catalogIdentifier, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> properties, boolean replace, boolean ifNotExists)voiddropCatalog(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier identifier, boolean ifExists)CatalogSchemagetCatalogSchema(@Nullable java.lang.String catalog)CatalogSchemagetCatalogSchema(TableName tablePath)Returns theCatalogSchemafor the catalog referenced in thisTableName.CatalogSchemagetCurrentCatalogSchema()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 schemaPlus, java.lang.String s)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 s)@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.SchemagetSubSchema(@Nullable java.lang.String name)java.util.Set<java.lang.String>getSubSchemaNames()@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.TablegetTable(java.lang.String table)java.util.Set<java.lang.String>getTableNames()@Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.type.RelProtoDataTypegetType(java.lang.String s)java.util.Set<java.lang.String>getTypeNames()booleanisMutable()voidmaybeRegisterProvider(TableName path, java.lang.String type)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 schemaVersion)voiduseCatalog(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier catalogIdentifier)
-
-
-
Method Detail
-
connection
public JdbcConnection connection()
-
createCatalog
public void createCatalog(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier catalogIdentifier, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> properties, boolean replace, boolean ifNotExists)
-
useCatalog
public void useCatalog(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier catalogIdentifier)
-
dropCatalog
public void dropCatalog(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.sql.SqlIdentifier identifier, boolean ifExists)
-
maybeRegisterProvider
public void maybeRegisterProvider(TableName path, java.lang.String type)
-
getTable
public @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Table getTable(java.lang.String table)
- Specified by:
getTablein 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
-
getCatalogSchema
public CatalogSchema getCatalogSchema(TableName tablePath)
Returns theCatalogSchemafor the catalog referenced in thisTableName. If the path does not reference a catalog, the currently useCatalogSchemawill be returned.
-
getCatalogSchema
public CatalogSchema getCatalogSchema(@Nullable java.lang.String catalog)
-
getCurrentCatalogSchema
public CatalogSchema getCurrentCatalogSchema()
-
getSubSchema
public @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema getSubSchema(@Nullable java.lang.String name)
- Specified by:
getSubSchemain 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
-
catalogs
public java.util.Collection<Catalog> catalogs()
-
setPipelineOption
public void setPipelineOption(java.lang.String key, java.lang.String value)
-
removePipelineOption
public void removePipelineOption(java.lang.String key)
-
removeAllPipelineOptions
public void removeAllPipelineOptions()
-
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
-
getType
public @Nullable org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.type.RelProtoDataType getType(java.lang.String s)
- Specified by:
getTypein 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 s)
- Specified by:
getFunctionsin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
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
-
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 schemaPlus, java.lang.String s)- Specified by:
getExpressionin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
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 schemaVersion)
- Specified by:
snapshotin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.schema.Schema
-
-