public static class SnowflakeIO.DataSourceProviderFromDataSourceConfiguration extends java.lang.Object implements SerializableFunction<java.lang.Void,javax.sql.DataSource>, HasDisplayData
SnowflakeIO.DataSourceConfiguration
to provide DataSource.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.
|
SnowflakeIO.DataSourceConfiguration |
getConfig() |
static SerializableFunction<java.lang.Void,javax.sql.DataSource> |
of(SnowflakeIO.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(SnowflakeIO.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
public SnowflakeIO.DataSourceConfiguration getConfig()