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
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.table.catalog.CatalogBaseTable
org.apache.flink.table.catalog.CatalogBaseTable.TableKindNested classes/interfaces inherited from interface org.apache.flink.table.catalog.CatalogTable
org.apache.flink.table.catalog.CatalogTable.Builder -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectorCatalogTable(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
Modifier and TypeMethodDescriptionstatic <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.CatalogTablebooleanisBatch()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, isPartitionedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.table.catalog.CatalogBaseTable
getUnresolvedSchemaMethods inherited from interface org.apache.flink.table.catalog.CatalogTable
getDistribution, getSnapshot, getTableKind
-
Constructor Details
-
ConnectorCatalogTable
-
-
Method Details
-
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
-
getTableSink
-
isBatch
public boolean isBatch() -
copy
-
copy
public org.apache.flink.table.catalog.CatalogBaseTable copy() -
getDescription
-
getDetailedDescription
-
calculateSourceSchema
public static <T1> org.apache.flink.table.legacy.api.TableSchema calculateSourceSchema(org.apache.flink.table.legacy.sources.TableSource<T1> source, boolean isBatch)
-