public class TableFactoryUtil extends Object
TableFactory
using the TableFactoryService
.Constructor and Description |
---|
TableFactoryUtil() |
Modifier and Type | Method and Description |
---|---|
static Optional<TableSink> |
createTableSinkForCatalogTable(Catalog catalog,
TableSinkFactory.Context context)
Creates a table sink for a
CatalogTable using table factory associated with the
catalog. |
static <T> TableSink<T> |
findAndCreateTableSink(Catalog catalog,
ObjectIdentifier objectIdentifier,
CatalogTable catalogTable,
ReadableConfig configuration,
boolean isStreamingMode,
boolean isTemporary)
Creates a
TableSink from a CatalogTable . |
static <T> TableSink<T> |
findAndCreateTableSink(TableSinkFactory.Context context)
Returns a table sink matching the context.
|
static <T> TableSource<T> |
findAndCreateTableSource(Catalog catalog,
ObjectIdentifier objectIdentifier,
CatalogTable catalogTable,
ReadableConfig configuration,
boolean isTemporary)
Creates a
TableSource from a CatalogTable . |
static <T> TableSource<T> |
findAndCreateTableSource(TableSourceFactory.Context context)
Returns a table source matching the descriptor.
|
static boolean |
isLegacyConnectorOptions(Catalog catalog,
ReadableConfig configuration,
boolean isStreamingMode,
ObjectIdentifier objectIdentifier,
CatalogTable catalogTable,
boolean isTemporary)
Checks whether the
CatalogTable uses legacy connector sink options. |
public static <T> TableSource<T> findAndCreateTableSource(TableSourceFactory.Context context)
public static <T> TableSource<T> findAndCreateTableSource(@Nullable Catalog catalog, ObjectIdentifier objectIdentifier, CatalogTable catalogTable, ReadableConfig configuration, boolean isTemporary)
public static <T> TableSink<T> findAndCreateTableSink(TableSinkFactory.Context context)
public static <T> TableSink<T> findAndCreateTableSink(@Nullable Catalog catalog, ObjectIdentifier objectIdentifier, CatalogTable catalogTable, ReadableConfig configuration, boolean isStreamingMode, boolean isTemporary)
public static Optional<TableSink> createTableSinkForCatalogTable(Catalog catalog, TableSinkFactory.Context context)
CatalogTable
using table factory associated with the
catalog.public static boolean isLegacyConnectorOptions(@Nullable Catalog catalog, ReadableConfig configuration, boolean isStreamingMode, ObjectIdentifier objectIdentifier, CatalogTable catalogTable, boolean isTemporary)
CatalogTable
uses legacy connector sink options.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.