Class SqlDWSink
java.lang.Object
com.azure.resourcemanager.datafactory.models.CopySink
com.azure.resourcemanager.datafactory.models.SqlDWSink
A copy activity SQL Data Warehouse sink.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowCopyCommand property: Indicates to use Copy Command to copy data into SQL Data Warehouse.Get the allowPolyBase property: Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable.Get the copyCommandSettings property: Specifies Copy Command related settings when allowCopyCommand is true.Get the polyBaseSettings property: Specifies PolyBase-related settings when allowPolyBase is true.Get the preCopyScript property: SQL pre-copy script.Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy.Get the tableOption property: The option to handle sink table, such as autoCreate.Get the upsertSettings property: SQL DW upsert settings.void
validate()
Validates the instance.withAllowCopyCommand
(Object allowCopyCommand) Set the allowCopyCommand property: Indicates to use Copy Command to copy data into SQL Data Warehouse.withAllowPolyBase
(Object allowPolyBase) Set the allowPolyBase property: Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable.withCopyCommandSettings
(DWCopyCommandSettings copyCommandSettings) Set the copyCommandSettings property: Specifies Copy Command related settings when allowCopyCommand is true.withDisableMetricsCollection
(Object disableMetricsCollection) Set the disableMetricsCollection property: If true, disable data store metrics collection.withMaxConcurrentConnections
(Object maxConcurrentConnections) Set the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store.withPolyBaseSettings
(PolybaseSettings polyBaseSettings) Set the polyBaseSettings property: Specifies PolyBase-related settings when allowPolyBase is true.withPreCopyScript
(Object preCopyScript) Set the preCopyScript property: SQL pre-copy script.withSinkRetryCount
(Object sinkRetryCount) Set the sinkRetryCount property: Sink retry count.withSinkRetryWait
(Object sinkRetryWait) Set the sinkRetryWait property: Sink retry wait.withSqlWriterUseTableLock
(Object sqlWriterUseTableLock) Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy.withTableOption
(Object tableOption) Set the tableOption property: The option to handle sink table, such as autoCreate.withUpsertSettings
(SqlDWUpsertSettings upsertSettings) Set the upsertSettings property: SQL DW upsert settings.withWriteBatchSize
(Object writeBatchSize) Set the writeBatchSize property: Write batch size.withWriteBatchTimeout
(Object writeBatchTimeout) Set the writeBatchTimeout property: Write batch timeout.withWriteBehavior
(Object writeBehavior) Set the writeBehavior property: Write behavior when copying data into azure SQL DW.Get the writeBehavior property: Write behavior when copying data into azure SQL DW.Methods inherited from class com.azure.resourcemanager.datafactory.models.CopySink
additionalProperties, disableMetricsCollection, maxConcurrentConnections, sinkRetryCount, sinkRetryWait, withAdditionalProperties, writeBatchSize, writeBatchTimeout
-
Constructor Details
-
SqlDWSink
public SqlDWSink()Creates an instance of SqlDWSink class.
-
-
Method Details
-
preCopyScript
Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string).- Returns:
- the preCopyScript value.
-
withPreCopyScript
Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string).- Parameters:
preCopyScript
- the preCopyScript value to set.- Returns:
- the SqlDWSink object itself.
-
allowPolyBase
Get the allowPolyBase property: Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean).- Returns:
- the allowPolyBase value.
-
withAllowPolyBase
Set the allowPolyBase property: Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean).- Parameters:
allowPolyBase
- the allowPolyBase value to set.- Returns:
- the SqlDWSink object itself.
-
polyBaseSettings
Get the polyBaseSettings property: Specifies PolyBase-related settings when allowPolyBase is true.- Returns:
- the polyBaseSettings value.
-
withPolyBaseSettings
Set the polyBaseSettings property: Specifies PolyBase-related settings when allowPolyBase is true.- Parameters:
polyBaseSettings
- the polyBaseSettings value to set.- Returns:
- the SqlDWSink object itself.
-
allowCopyCommand
Get the allowCopyCommand property: Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean).- Returns:
- the allowCopyCommand value.
-
withAllowCopyCommand
Set the allowCopyCommand property: Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean).- Parameters:
allowCopyCommand
- the allowCopyCommand value to set.- Returns:
- the SqlDWSink object itself.
-
copyCommandSettings
Get the copyCommandSettings property: Specifies Copy Command related settings when allowCopyCommand is true.- Returns:
- the copyCommandSettings value.
-
withCopyCommandSettings
Set the copyCommandSettings property: Specifies Copy Command related settings when allowCopyCommand is true.- Parameters:
copyCommandSettings
- the copyCommandSettings value to set.- Returns:
- the SqlDWSink object itself.
-
tableOption
Get the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string).- Returns:
- the tableOption value.
-
withTableOption
Set the tableOption property: The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string).- Parameters:
tableOption
- the tableOption value to set.- Returns:
- the SqlDWSink object itself.
-
sqlWriterUseTableLock
Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).- Returns:
- the sqlWriterUseTableLock value.
-
withSqlWriterUseTableLock
Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).- Parameters:
sqlWriterUseTableLock
- the sqlWriterUseTableLock value to set.- Returns:
- the SqlDWSink object itself.
-
writeBehavior
Get the writeBehavior property: Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum).- Returns:
- the writeBehavior value.
-
withWriteBehavior
Set the writeBehavior property: Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum).- Parameters:
writeBehavior
- the writeBehavior value to set.- Returns:
- the SqlDWSink object itself.
-
upsertSettings
Get the upsertSettings property: SQL DW upsert settings.- Returns:
- the upsertSettings value.
-
withUpsertSettings
Set the upsertSettings property: SQL DW upsert settings.- Parameters:
upsertSettings
- the upsertSettings value to set.- Returns:
- the SqlDWSink object itself.
-
withWriteBatchSize
Set the writeBatchSize property: Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.- Overrides:
withWriteBatchSize
in classCopySink
- Parameters:
writeBatchSize
- the writeBatchSize value to set.- Returns:
- the CopySink object itself.
-
withWriteBatchTimeout
Set the writeBatchTimeout property: Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).- Overrides:
withWriteBatchTimeout
in classCopySink
- Parameters:
writeBatchTimeout
- the writeBatchTimeout value to set.- Returns:
- the CopySink object itself.
-
withSinkRetryCount
Set the sinkRetryCount property: Sink retry count. Type: integer (or Expression with resultType integer).- Overrides:
withSinkRetryCount
in classCopySink
- Parameters:
sinkRetryCount
- the sinkRetryCount value to set.- Returns:
- the CopySink object itself.
-
withSinkRetryWait
Set the sinkRetryWait property: Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).- Overrides:
withSinkRetryWait
in classCopySink
- Parameters:
sinkRetryWait
- the sinkRetryWait value to set.- Returns:
- the CopySink object itself.
-
withMaxConcurrentConnections
Set the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).- Overrides:
withMaxConcurrentConnections
in classCopySink
- Parameters:
maxConcurrentConnections
- the maxConcurrentConnections value to set.- Returns:
- the CopySink object itself.
-
withDisableMetricsCollection
Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).- Overrides:
withDisableMetricsCollection
in classCopySink
- Parameters:
disableMetricsCollection
- the disableMetricsCollection value to set.- Returns:
- the CopySink object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCopySink
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-