Package org.apache.beam.sdk.io.jdbc
Class JdbcIO.DataSourceProviderFromDataSourceConfiguration
java.lang.Object
org.apache.beam.sdk.io.jdbc.JdbcIO.DataSourceProviderFromDataSourceConfiguration
- All Implemented Interfaces:
Serializable,HasDisplayData,ProcessFunction<Void,,DataSource> SerializableFunction<Void,DataSource>
- Enclosing class:
JdbcIO
public static class JdbcIO.DataSourceProviderFromDataSourceConfiguration
extends Object
implements SerializableFunction<Void,DataSource>, HasDisplayData
Wraps a
JdbcIO.DataSourceConfiguration to provide a DataSource.
At most a single DataSource instance will be constructed during pipeline execution
for each unique JdbcIO.DataSourceConfiguration within the pipeline.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of invoking this function on the given input.static SerializableFunction<Void, DataSource> of(JdbcIO.DataSourceConfiguration config) voidpopulateDisplayData(DisplayData.Builder builder) Register display data for the given transform or component.
-
Method Details
-
of
-
apply
Description copied from interface:SerializableFunctionReturns the result of invoking this function on the given input.- Specified by:
applyin interfaceProcessFunction<Void,DataSource> - Specified by:
applyin interfaceSerializableFunction<Void,DataSource>
-
populateDisplayData
Description copied from interface:HasDisplayDataRegister display data for the given transform or component.populateDisplayData(DisplayData.Builder)is invoked by Pipeline runners to collect display data viaDisplayData.from(HasDisplayData). Implementations may callsuper.populateDisplayData(builder)in order to register display data in the current namespace, but should otherwise usesubcomponent.populateDisplayData(builder)to use the namespace of the subcomponent.- Specified by:
populateDisplayDatain interfaceHasDisplayData- Parameters:
builder- The builder to populate with display data.- See Also:
-