Interface DynamicTableFactory
-
- All Superinterfaces:
Factory
- All Known Subinterfaces:
DynamicTableSinkFactory,DynamicTableSourceFactory
@PublicEvolving public interface DynamicTableFactory extends Factory
Base interface for configuring a dynamic table connector for an external storage system from catalog and session information.Dynamic tables are the core concept of Flink's Table & SQL API for processing both bounded and unbounded data in a unified fashion.
Implement
DynamicTableSourceFactoryfor constructing aDynamicTableSource.Implement
DynamicTableSinkFactoryfor constructing aDynamicTableSink.The options
FactoryUtil.PROPERTY_VERSIONandFactoryUtil.CONNECTORare implicitly added and must not be declared.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDynamicTableFactory.ContextProvides catalog and session information describing the dynamic table to be accessed.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Set<org.apache.flink.configuration.ConfigOption<?>>forwardOptions()Returns a set ofConfigOptionthat are directly forwarded to the runtime implementation but don't affect the final execution topology.-
Methods inherited from interface org.apache.flink.table.factories.Factory
factoryIdentifier, optionalOptions, requiredOptions
-
-
-
-
Method Detail
-
forwardOptions
default Set<org.apache.flink.configuration.ConfigOption<?>> forwardOptions()
Returns a set ofConfigOptionthat are directly forwarded to the runtime implementation but don't affect the final execution topology.Options declared here can override options of the persisted plan during an enrichment phase. Since a restored topology is static, an implementer has to ensure that the declared options don't affect fundamental abilities such as
SupportsProjectionPushDownorSupportsFilterPushDown.For example, given a database connector, if an option defines the connection timeout, changing this value does not affect the pipeline topology and can be allowed. However, an option that defines whether the connector supports
SupportsReadingMetadataor not is not allowed. The planner might not react to changed abilities anymore.
-
-