Package org.apache.flink.table.catalog
Class ConnectorCatalogTable<T1,T2>
- java.lang.Object
-
- org.apache.flink.table.catalog.AbstractCatalogTable
-
- org.apache.flink.table.catalog.ConnectorCatalogTable<T1,T2>
-
- Type Parameters:
T1- type of the produced elements by theTableSourceT2- type of the expected elements by theTableSink
- All Implemented Interfaces:
org.apache.flink.table.catalog.CatalogBaseTable,org.apache.flink.table.catalog.CatalogTable
@Internal public class ConnectorCatalogTable<T1,T2> extends AbstractCatalogTable
ACatalogTablethat wraps aTableSourceand/orTableSink. This allows registering those in aCatalog. 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 Summary
Constructors Modifier Constructor Description protectedConnectorCatalogTable(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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T1> org.apache.flink.table.legacy.api.TableSchemacalculateSourceSchema(org.apache.flink.table.legacy.sources.TableSource<T1> source, boolean isBatch)org.apache.flink.table.catalog.CatalogBaseTablecopy()org.apache.flink.table.catalog.CatalogTablecopy(Map<String,String> options)Optional<String>getDescription()Optional<String>getDetailedDescription()Optional<org.apache.flink.table.legacy.sinks.TableSink<T2>>getTableSink()Optional<org.apache.flink.table.legacy.sources.TableSource<T1>>getTableSource()booleanisBatch()static <T2> ConnectorCatalogTable<?,T2>sink(org.apache.flink.table.legacy.sinks.TableSink<T2> sink, boolean isBatch)static <T1> ConnectorCatalogTable<T1,?>source(org.apache.flink.table.legacy.sources.TableSource<T1> source, boolean isBatch)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)-
Methods inherited from class org.apache.flink.table.catalog.AbstractCatalogTable
getComment, getOptions, getPartitionKeys, getSchema, isPartitioned
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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()
-
isBatch
public boolean isBatch()
-
copy
public org.apache.flink.table.catalog.CatalogBaseTable copy()
-
calculateSourceSchema
public static <T1> org.apache.flink.table.legacy.api.TableSchema calculateSourceSchema(org.apache.flink.table.legacy.sources.TableSource<T1> source, boolean isBatch)
-
-