Class SingleStoreIO.DataSourceConfiguration
java.lang.Object
org.apache.beam.sdk.io.singlestore.SingleStoreIO.DataSourceConfiguration
- All Implemented Interfaces:
Serializable
- Enclosing class:
SingleStoreIO
@DefaultSchema(AutoValueSchema.class)
public abstract static class SingleStoreIO.DataSourceConfiguration
extends Object
implements Serializable
A POJO describing a SingleStoreDB
DataSource by providing all properties needed to
create it.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpopulateDisplayData(@Nullable SingleStoreIO.DataSourceConfiguration dataSourceConfiguration, DisplayData.Builder builder) withConnectionProperties(String connectionProperties) Sets the connection properties passed to driver.connect(...).withDatabase(String database) withPassword(String password) withUsername(String username)
-
Constructor Details
-
DataSourceConfiguration
public DataSourceConfiguration()
-
-
Method Details
-
create
-
withUsername
-
withPassword
-
withDatabase
-
withConnectionProperties
Sets the connection properties passed to driver.connect(...). Format of the string must be [propertyName=property;]*NOTE - The "user" and "password" properties can be add via
withUsername(String),withPassword(String), so they do not need to be included here.Full list of supported properties can be found here invalid input: '{@link <a href="https://docs.singlestore.com/managed-service/en/developer-resources/connect-with-application-development-tools/connect-with-java-jdbc/the-singlestore-jdbc-driver.html#connection-string-parameters">...</a>'}
-
populateDisplayData
public static void populateDisplayData(@Nullable SingleStoreIO.DataSourceConfiguration dataSourceConfiguration, DisplayData.Builder builder) -
getDataSource
-