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 |
|---|---|
static <T1> org.apache.flink.table.api.TableSchema |
calculateSourceSchema(org.apache.flink.table.sources.TableSource<T1> source,
boolean isBatch) |
org.apache.flink.table.catalog.CatalogBaseTable |
copy() |
org.apache.flink.table.catalog.CatalogTable |
copy(Map<String,String> options) |
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, getOptions, getPartitionKeys, getSchema, isPartitionedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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()
public static <T1> org.apache.flink.table.api.TableSchema calculateSourceSchema(org.apache.flink.table.sources.TableSource<T1> source,
boolean isBatch)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.