@Internal public class TableFactoryUtil extends Object
TableFactory using the TableFactoryService.| Constructor and Description |
|---|
TableFactoryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.table.factories.CatalogStoreFactory.Context |
buildCatalogStoreFactoryContext(org.apache.flink.configuration.Configuration configuration,
ClassLoader classLoader)
Build a
CatalogStoreFactory.Context for opening the CatalogStoreFactory. |
static Optional<org.apache.flink.table.sinks.TableSink> |
createTableSinkForCatalogTable(org.apache.flink.table.catalog.Catalog catalog,
org.apache.flink.table.factories.TableSinkFactory.Context context)
Creates a table sink for a
CatalogTable using table factory associated with the
catalog. |
static org.apache.flink.table.factories.CatalogStoreFactory |
findAndCreateCatalogStoreFactory(org.apache.flink.configuration.Configuration configuration,
ClassLoader classLoader)
Finds and creates a
CatalogStoreFactory using the provided Configuration and
user classloader. |
static <T> org.apache.flink.table.sinks.TableSink<T> |
findAndCreateTableSink(org.apache.flink.table.catalog.Catalog catalog,
org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier,
org.apache.flink.table.catalog.CatalogTable catalogTable,
org.apache.flink.configuration.ReadableConfig configuration,
boolean isStreamingMode,
boolean isTemporary)
Creates a
TableSink from a CatalogTable. |
static <T> org.apache.flink.table.sinks.TableSink<T> |
findAndCreateTableSink(org.apache.flink.table.factories.TableSinkFactory.Context context)
Returns a table sink matching the context.
|
static <T> org.apache.flink.table.sources.TableSource<T> |
findAndCreateTableSource(org.apache.flink.table.catalog.Catalog catalog,
org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier,
org.apache.flink.table.catalog.CatalogTable catalogTable,
org.apache.flink.configuration.ReadableConfig configuration,
boolean isTemporary)
Creates a
TableSource from a CatalogTable. |
static <T> org.apache.flink.table.sources.TableSource<T> |
findAndCreateTableSource(org.apache.flink.table.factories.TableSourceFactory.Context context)
Returns a table source matching the descriptor.
|
static List<CatalogModificationListener> |
findCatalogModificationListenerList(org.apache.flink.configuration.ReadableConfig configuration,
ClassLoader classLoader)
Find and create modification listener list from configuration.
|
static boolean |
isLegacyConnectorOptions(org.apache.flink.table.catalog.Catalog catalog,
org.apache.flink.configuration.ReadableConfig configuration,
boolean isStreamingMode,
org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier,
org.apache.flink.table.catalog.CatalogTable catalogTable,
boolean isTemporary)
Checks whether the
CatalogTable uses legacy connector sink options. |
public static <T> org.apache.flink.table.sources.TableSource<T> findAndCreateTableSource(org.apache.flink.table.factories.TableSourceFactory.Context context)
public static <T> org.apache.flink.table.sources.TableSource<T> findAndCreateTableSource(@Nullable org.apache.flink.table.catalog.Catalog catalog, org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier, org.apache.flink.table.catalog.CatalogTable catalogTable, org.apache.flink.configuration.ReadableConfig configuration, boolean isTemporary)
TableSource from a CatalogTable.
It considers Catalog.getFactory() if provided.
public static <T> org.apache.flink.table.sinks.TableSink<T> findAndCreateTableSink(org.apache.flink.table.factories.TableSinkFactory.Context context)
public static <T> org.apache.flink.table.sinks.TableSink<T> findAndCreateTableSink(@Nullable org.apache.flink.table.catalog.Catalog catalog, org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier, org.apache.flink.table.catalog.CatalogTable catalogTable, org.apache.flink.configuration.ReadableConfig configuration, boolean isStreamingMode, boolean isTemporary)
TableSink from a CatalogTable.
It considers Catalog.getFactory() if provided.
public static Optional<org.apache.flink.table.sinks.TableSink> createTableSinkForCatalogTable(org.apache.flink.table.catalog.Catalog catalog, org.apache.flink.table.factories.TableSinkFactory.Context context)
CatalogTable using table factory associated with the
catalog.public static boolean isLegacyConnectorOptions(@Nullable org.apache.flink.table.catalog.Catalog catalog, org.apache.flink.configuration.ReadableConfig configuration, boolean isStreamingMode, org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier, org.apache.flink.table.catalog.CatalogTable catalogTable, boolean isTemporary)
CatalogTable uses legacy connector sink options.public static List<CatalogModificationListener> findCatalogModificationListenerList(org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader)
public static org.apache.flink.table.factories.CatalogStoreFactory findAndCreateCatalogStoreFactory(org.apache.flink.configuration.Configuration configuration,
ClassLoader classLoader)
CatalogStoreFactory using the provided Configuration and
user classloader.
The configuration format should be as follows:
table.catalog-store.kind: {identifier}
table.catalog-store.{identifier}.{param1}: xxx
table.catalog-store.{identifier}.{param2}: xxx
public static org.apache.flink.table.factories.CatalogStoreFactory.Context buildCatalogStoreFactoryContext(org.apache.flink.configuration.Configuration configuration,
ClassLoader classLoader)
CatalogStoreFactory.Context for opening the CatalogStoreFactory.
The configuration format should be as follows:
table.catalog-store.kind: {identifier}
table.catalog-store.{identifier}.{param1}: xxx
table.catalog-store.{identifier}.{param2}: xxx
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.