public static class JdbcIO.DataSourceProviderFromDataSourceConfiguration extends java.lang.Object implements SerializableFunction<java.lang.Void,javax.sql.DataSource>, HasDisplayData
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.
Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
apply(java.lang.Void input)
Returns the result of invoking this function on the given input.
|
static SerializableFunction<java.lang.Void,javax.sql.DataSource> |
of(JdbcIO.DataSourceConfiguration config) |
void |
populateDisplayData(DisplayData.Builder builder)
Register display data for the given transform or component.
|
public static SerializableFunction<java.lang.Void,javax.sql.DataSource> of(JdbcIO.DataSourceConfiguration config)
public javax.sql.DataSource apply(java.lang.Void input)
SerializableFunction
apply
in interface ProcessFunction<java.lang.Void,javax.sql.DataSource>
apply
in interface SerializableFunction<java.lang.Void,javax.sql.DataSource>
public void populateDisplayData(DisplayData.Builder builder)
HasDisplayData
populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect
display data via DisplayData.from(HasDisplayData)
. Implementations may call super.populateDisplayData(builder)
in order to register display data in the current namespace,
but should otherwise use subcomponent.populateDisplayData(builder)
to use the namespace
of the subcomponent.
populateDisplayData
in interface HasDisplayData
builder
- The builder to populate with display data.HasDisplayData