package table
Type Members
-
abstract
class
BaseCatalog extends AbstractCatalog
Base implementation of Flink catalog.
Base implementation of Flink catalog. This class handles Catalog operations for Delta tables that do not require interaction with _delta_log, for example view, database operations etc.
- final class CatalogExceptionHelper extends AnyRef
-
trait
CatalogLoader extends Serializable
Creates a concrete catalog instance that will be used as decorated catalog by
DeltaCatalog. -
class
CatalogProxy extends BaseCatalog
A proxy class that redirects calls to Delta Catalog or decorated catalog depending on table type.
-
class
DeltaCatalog extends AnyRef
Delta Catalog implementation.
Delta Catalog implementation. This class executes calls to _delta_log for catalog operations such as createTable, getTable etc. This class also prepares, persists and uses data store in metastore using decorated catalog implementation.
Catalog operations that are not in scope of Delta Table or do not require _delta_log operations will be handled by
CatalogProxyandBaseCatalogclasses. -
class
DeltaCatalogBaseTable extends AnyRef
Data object used by Delta Catalog implementation API that wraps Flink's
ObjectPathrepresented by databaseName.tableName andCatalogBaseTablecontaining table properties and schema from DDL. -
class
DeltaCatalogContext extends Context
Basic implementation of Flink's
CatalogFactory.Contextthat is needed as an argument of Flink'sCatalogFactory#createCatalog(Context)used byCatalogLoader.Basic implementation of Flink's
CatalogFactory.Contextthat is needed as an argument of Flink'sCatalogFactory#createCatalog(Context)used byCatalogLoader.All Flink's implementations of
CatalogFactory.Contextare marked as@Internalso not meant to be used by users. This implementation is based on Flink'sorg.apache.flink.table.factories.FactoryUtil.DefaultCatalogContext -
class
DeltaCatalogFactory extends CatalogFactory
The catalog factory implementation for Delta Catalog.
The catalog factory implementation for Delta Catalog. This factory will be discovered by Flink runtime using Java’s Service Provider Interfaces (SPI) based on resources/META-INF/services/org.apache.flink.table.factories.Factory file.
Flink runtime will call
#createCatalog(Context)method that will return new Delta Catalog instance. - final class DeltaCatalogTableHelper extends AnyRef
-
class
DeltaDynamicTableFactory extends DynamicTableSinkFactory with DynamicTableSourceFactory
Creates a
DynamicTableSinkandDynamicTableSourceinstance representing DeltaLake table.Creates a
DynamicTableSinkandDynamicTableSourceinstance representing DeltaLake table.This implementation automatically resolves all necessary object for creating instance of
io.delta.flink.sink.DeltaSinkandio.delta.flink.source.DeltaSourceexcept Delta table's path that needs to be provided explicitly. -
class
DeltaDynamicTableSink extends DynamicTableSink with SupportsPartitioning
Sink of a dynamic Flink table to a Delta lake table.
Sink of a dynamic Flink table to a Delta lake table.
It utilizes new Flink Sink API (available for
Flink >= 1.12) and interfaces (available forFlink >= 1.13) provided for interoperability between this new Sink API and Table API. It also supports static partitioning.For regular batch scenarios, the sink can solely accept insert-only rows and write out bounded streams.
For regular streaming scenarios, the sink can solely accept insert-only rows and can write out unbounded streams.
-
class
DeltaDynamicTableSource extends ScanTableSource
Implementation of
ScanTableSourceinterface for Table/SQL support for Delta Source connector. -
class
DeltaFlinkJobSpecificOptions extends AnyRef
This class contains Flink job-specific options for
io.delta.flink.source.DeltaSourceandio.delta.flink.sink.DeltaSinkthat are relevant for Table API.This class contains Flink job-specific options for
io.delta.flink.source.DeltaSourceandio.delta.flink.sink.DeltaSinkthat are relevant for Table API. For Table API, this options can be set only using Flink, dynamic table options from DML/DQL query level, for example:
Flink job-specific options are not stored in metastore nor in Delta Log. Their scope is single Flink Job (DML/DQL query) only.SELECT * FROM my_delta_source_table /*+ OPTIONS(‘mode' = 'streaming')In practice this class will contain options from
io.delta.flink.source.internal.DeltaSourceOptionsandio.delta.flink.sink.internal.DeltaSinkOptions+ extra ones like MODE. -
class
DeltaTableConnectorOptions extends AnyRef
Options for the Flink TableAPI's DeltaSink connector.
- final class DeltaTableFactoryHelper extends AnyRef
-
class
HadoopUtils extends AnyRef
Utility class to discover and process Hadoop configuration on Flink cluster.
Utility class to discover and process Hadoop configuration on Flink cluster.
This class was backport from Flink's flink-hadoop-fs module, and it contains a subset of methods comparing to the original class. We kept only needed methods.
The reason for backport this to connector code was that original implementation requires various additional hadoop classes to be loaded on the classpath which required adding additional hadoop dependencies to the project.
-
class
QueryOptions extends AnyRef
Data object containing information about Delta table path, query mode (streaming or batch) and used job-specific options such as startingVersion, versionAsOf etc.