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,
CatalogTable catalogTable,
ObjectPath tablePath)
Creates a table sink for a
CatalogTable using table factory associated with the catalog. |
static <T> TableSink<T> |
findAndCreateTableSink(CatalogTable table)
Returns a table sink matching the
CatalogTable . |
static <T> TableSink<T> |
findAndCreateTableSink(Descriptor descriptor)
Returns a table sink matching the descriptor.
|
static <T> TableSource<T> |
findAndCreateTableSource(CatalogTable table)
Returns a table source matching the
CatalogTable . |
static <T> TableSource<T> |
findAndCreateTableSource(Descriptor descriptor)
Returns a table source matching the descriptor.
|
public static <T> TableSource<T> findAndCreateTableSource(Descriptor descriptor)
public static <T> TableSink<T> findAndCreateTableSink(Descriptor descriptor)
public static <T> TableSink<T> findAndCreateTableSink(CatalogTable table)
CatalogTable
.public static <T> TableSource<T> findAndCreateTableSource(CatalogTable table)
CatalogTable
.public static Optional<TableSink> createTableSinkForCatalogTable(Catalog catalog, CatalogTable catalogTable, ObjectPath tablePath)
CatalogTable
using table factory associated with the catalog.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.