public class SnowflakeBatchServiceConfig extends ServiceConfig
Constructor and Description |
---|
SnowflakeBatchServiceConfig(SerializableFunction<java.lang.Void,javax.sql.DataSource> dataSourceProviderFn,
java.util.List<java.lang.String> filesList,
SnowflakeTableSchema tableSchema,
java.lang.String database,
java.lang.String schema,
java.lang.String table,
java.lang.String query,
CreateDisposition createDisposition,
WriteDisposition writeDisposition,
java.lang.String storageIntegrationName,
java.lang.String stagingBucketDir,
java.lang.String quotationMark)
Creating a batch configuration for writing.
|
SnowflakeBatchServiceConfig(SerializableFunction<java.lang.Void,javax.sql.DataSource> dataSourceProviderFn,
java.lang.String database,
java.lang.String schema,
java.lang.String table,
java.lang.String query,
java.lang.String storageIntegrationName,
java.lang.String stagingBucketDir,
java.lang.String quotationMark)
Creating a batch configuration for reading.
|
Modifier and Type | Method and Description |
---|---|
CreateDisposition |
getCreateDisposition() |
java.lang.String |
getDatabase()
Getting a Snowflake database.
|
SerializableFunction<java.lang.Void,javax.sql.DataSource> |
getDataSourceProviderFn()
Getting a DataSource provider function for connection credentials.
|
java.util.List<java.lang.String> |
getFilesList()
Getting list of names of staged files.
|
java.lang.String |
getQuery()
Getting a query which can be source for reading.
|
java.lang.String |
getQuotationMark()
Getting a character that will surround
String in staged CSV files. |
java.lang.String |
getSchema()
Getting a schema of a Snowflake table.
|
java.lang.String |
getStagingBucketDir()
Getting directory where files are staged.
|
java.lang.String |
getStorageIntegrationName()
Getting Snowflake integration which is used in COPY statement.
|
java.lang.String |
getTable()
Getting a table as a source of reading or destination to write.
|
SnowflakeTableSchema |
getTableSchema() |
WriteDisposition |
getWriteDisposition()
Getting disposition how write data to table, see:
WriteDisposition . |
public SnowflakeBatchServiceConfig(SerializableFunction<java.lang.Void,javax.sql.DataSource> dataSourceProviderFn, java.lang.String database, java.lang.String schema, java.lang.String table, java.lang.String query, java.lang.String storageIntegrationName, java.lang.String stagingBucketDir, java.lang.String quotationMark)
public SnowflakeBatchServiceConfig(SerializableFunction<java.lang.Void,javax.sql.DataSource> dataSourceProviderFn, java.util.List<java.lang.String> filesList, SnowflakeTableSchema tableSchema, java.lang.String database, java.lang.String schema, java.lang.String table, java.lang.String query, CreateDisposition createDisposition, WriteDisposition writeDisposition, java.lang.String storageIntegrationName, java.lang.String stagingBucketDir, java.lang.String quotationMark)
public SerializableFunction<java.lang.Void,javax.sql.DataSource> getDataSourceProviderFn()
public java.lang.String getTable()
public java.lang.String getQuery()
public java.lang.String getStorageIntegrationName()
public java.lang.String getStagingBucketDir()
public java.util.List<java.lang.String> getFilesList()
public WriteDisposition getWriteDisposition()
WriteDisposition
.public java.lang.String getQuotationMark()
String
in staged CSV files.public java.lang.String getDatabase()
public java.lang.String getSchema()
public CreateDisposition getCreateDisposition()
public SnowflakeTableSchema getTableSchema()