Class SnowflakeBatchServiceConfig
java.lang.Object
org.apache.beam.sdk.io.snowflake.services.SnowflakeBatchServiceConfig
Class for preparing configuration for batch write and read.
-
Constructor Summary
ConstructorsConstructorDescriptionSnowflakeBatchServiceConfig
(SerializableFunction<Void, DataSource> dataSourceProviderFn, String database, String schema, String table, String query, String storageIntegrationName, String stagingBucketDir, String quotationMark) Creating a batch configuration for reading.SnowflakeBatchServiceConfig
(SerializableFunction<Void, DataSource> dataSourceProviderFn, List<String> filesList, SnowflakeTableSchema tableSchema, String database, String schema, String table, String query, CreateDisposition createDisposition, WriteDisposition writeDisposition, String storageIntegrationName, String stagingBucketDir, String quotationMark) Creating a batch configuration for writing. -
Method Summary
Modifier and TypeMethodDescriptionGetting a Snowflake database.Getting a DataSource provider function for connection credentials.Getting list of names of staged files.getQuery()
Getting a query which can be source for reading.Getting a character that will surroundString
in staged CSV files.Getting a schema of a Snowflake table.Getting directory where files are staged.Getting Snowflake integration which is used in COPY statement.getTable()
Getting a table as a source of reading or destination to write.Getting disposition how write data to table, see:WriteDisposition
.
-
Constructor Details
-
SnowflakeBatchServiceConfig
public SnowflakeBatchServiceConfig(SerializableFunction<Void, DataSource> dataSourceProviderFn, String database, String schema, String table, String query, String storageIntegrationName, String stagingBucketDir, String quotationMark) Creating a batch configuration for reading. -
SnowflakeBatchServiceConfig
public SnowflakeBatchServiceConfig(SerializableFunction<Void, DataSource> dataSourceProviderFn, List<String> filesList, SnowflakeTableSchema tableSchema, String database, String schema, String table, String query, CreateDisposition createDisposition, WriteDisposition writeDisposition, String storageIntegrationName, String stagingBucketDir, String quotationMark) Creating a batch configuration for writing.
-
-
Method Details
-
getDataSourceProviderFn
Getting a DataSource provider function for connection credentials. -
getTable
Getting a table as a source of reading or destination to write. -
getQuery
Getting a query which can be source for reading. -
getStorageIntegrationName
Getting Snowflake integration which is used in COPY statement. -
getStagingBucketDir
Getting directory where files are staged. -
getFilesList
Getting list of names of staged files. -
getWriteDisposition
Getting disposition how write data to table, see:WriteDisposition
. -
getQuotationMark
Getting a character that will surroundString
in staged CSV files. -
getDatabase
Getting a Snowflake database. -
getSchema
Getting a schema of a Snowflake table. -
getCreateDisposition
-
getTableSchema
-