Class ConnectorCatalogTable<T1,​T2>

  • Type Parameters:
    T1 - type of the produced elements by the TableSource
    T2 - type of the expected elements by the TableSink
    All Implemented Interfaces:
    org.apache.flink.table.catalog.CatalogBaseTable, org.apache.flink.table.catalog.CatalogTable

    @Internal
    public class ConnectorCatalogTable<T1,​T2>
    extends AbstractCatalogTable
    A CatalogTable that wraps a TableSource and/or TableSink. This allows registering those in a Catalog. It can not be persisted as the source and/or sink might be inline implementations and not be representable in a property based form.
    • Constructor Detail

      • ConnectorCatalogTable

        @VisibleForTesting
        protected ConnectorCatalogTable​(org.apache.flink.table.legacy.sources.TableSource<T1> tableSource,
                                        org.apache.flink.table.legacy.sinks.TableSink<T2> tableSink,
                                        org.apache.flink.table.legacy.api.TableSchema tableSchema,
                                        boolean isBatch)
    • Method Detail

      • source

        public static <T1> ConnectorCatalogTable<T1,​?> source​(org.apache.flink.table.legacy.sources.TableSource<T1> source,
                                                                    boolean isBatch)
      • sink

        public static <T2> ConnectorCatalogTable<?,​T2> sink​(org.apache.flink.table.legacy.sinks.TableSink<T2> sink,
                                                                  boolean isBatch)
      • sourceAndSink

        public static <T1,​T2> ConnectorCatalogTable<T1,​T2> sourceAndSink​(org.apache.flink.table.legacy.sources.TableSource<T1> source,
                                                                                     org.apache.flink.table.legacy.sinks.TableSink<T2> sink,
                                                                                     boolean isBatch)
      • getTableSource

        public Optional<org.apache.flink.table.legacy.sources.TableSource<T1>> getTableSource()
      • getTableSink

        public Optional<org.apache.flink.table.legacy.sinks.TableSink<T2>> getTableSink()
      • isBatch

        public boolean isBatch()
      • copy

        public org.apache.flink.table.catalog.CatalogTable copy​(Map<String,​String> options)
      • copy

        public org.apache.flink.table.catalog.CatalogBaseTable copy()
      • getDetailedDescription

        public Optional<String> getDetailedDescription()
      • calculateSourceSchema

        public static <T1> org.apache.flink.table.legacy.api.TableSchema calculateSourceSchema​(org.apache.flink.table.legacy.sources.TableSource<T1> source,
                                                                                               boolean isBatch)