Class TableDescriptor


  • @PublicEvolving
    public class TableDescriptor
    extends Object
    Describes a CatalogTable representing a source or sink.

    A TableDescriptor is a template for creating a CatalogTable instance. It closely resembles the "CREATE TABLE" SQL DDL statement, containing schema, connector options, and other characteristics. Since tables in Flink are typically backed by external systems, the descriptor describes how a connector (and possibly its format) are configured.

    This can be used to register a table in the Table API, see TableEnvironment.createTemporaryTable(String, TableDescriptor).

    • Constructor Detail

      • TableDescriptor

        protected TableDescriptor​(@Nullable
                                  org.apache.flink.table.api.Schema schema,
                                  Map<String,​String> options,
                                  @Nullable
                                  org.apache.flink.table.catalog.TableDistribution distribution,
                                  List<String> partitionKeys,
                                  @Nullable
                                  String comment)