T1 - type of the produced elements by the TableSourceT2 - type of the expected elements by the TableSink@Internal public class ConnectorCatalogTable<T1,T2> extends AbstractCatalogTable
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.| Modifier | Constructor and Description |
|---|---|
protected |
ConnectorCatalogTable(org.apache.flink.table.sources.TableSource<T1> tableSource,
org.apache.flink.table.sinks.TableSink<T2> tableSink,
org.apache.flink.table.api.TableSchema tableSchema,
boolean isBatch) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.catalog.CatalogBaseTable |
copy() |
Optional<String> |
getDescription() |
Optional<String> |
getDetailedDescription() |
Optional<org.apache.flink.table.sinks.TableSink<T2>> |
getTableSink() |
Optional<org.apache.flink.table.sources.TableSource<T1>> |
getTableSource() |
boolean |
isBatch() |
static <T2> ConnectorCatalogTable<?,T2> |
sink(org.apache.flink.table.sinks.TableSink<T2> sink,
boolean isBatch) |
static <T1> ConnectorCatalogTable<T1,?> |
source(org.apache.flink.table.sources.TableSource<T1> source,
boolean isBatch) |
static <T1,T2> ConnectorCatalogTable<T1,T2> |
sourceAndSink(org.apache.flink.table.sources.TableSource<T1> source,
org.apache.flink.table.sinks.TableSink<T2> sink,
boolean isBatch) |
Map<String,String> |
toProperties() |
getComment, getPartitionKeys, getProperties, getSchema, isPartitionedpublic static <T1> ConnectorCatalogTable<T1,?> source(org.apache.flink.table.sources.TableSource<T1> source, boolean isBatch)
public static <T2> ConnectorCatalogTable<?,T2> sink(org.apache.flink.table.sinks.TableSink<T2> sink, boolean isBatch)
public static <T1,T2> ConnectorCatalogTable<T1,T2> sourceAndSink(org.apache.flink.table.sources.TableSource<T1> source, org.apache.flink.table.sinks.TableSink<T2> sink, boolean isBatch)
public boolean isBatch()
public org.apache.flink.table.catalog.CatalogBaseTable copy()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.