SqlServerSink Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. CopySink - com.
azure. resourcemanager. datafactory. models. SqlServerSink
- com.
- com.
public final class SqlServerSink
extends CopySink
A copy activity SQL server sink.
Constructor Summary
| Constructor | Description |
|---|---|
| SqlServerSink() |
Creates an instance of Sql |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
| Object |
preCopyScript()
Get the pre |
| Object |
sqlWriterStoredProcedureName()
Get the sql |
| Object |
sqlWriterTableType()
Get the sql |
| Object |
sqlWriterUseTableLock()
Get the sql |
| Object |
storedProcedureParameters()
Get the stored |
| Object |
storedProcedureTableTypeParameterName()
Get the stored |
| Object |
tableOption()
Get the table |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Copy sink type. |
|
Sql |
upsertSettings()
Get the upsert |
| void |
validate()
Validates the instance. |
|
Sql |
withDisableMetricsCollection(Object disableMetricsCollection)
Set the disable |
|
Sql |
withMaxConcurrentConnections(Object maxConcurrentConnections)
Set the max |
|
Sql |
withPreCopyScript(Object preCopyScript)
Set the pre |
|
Sql |
withSinkRetryCount(Object sinkRetryCount)
Set the sink |
|
Sql |
withSinkRetryWait(Object sinkRetryWait)
Set the sink |
|
Sql |
withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName)
Set the sql |
|
Sql |
withSqlWriterTableType(Object sqlWriterTableType)
Set the sql |
|
Sql |
withSqlWriterUseTableLock(Object sqlWriterUseTableLock)
Set the sql |
|
Sql |
withStoredProcedureParameters(Object storedProcedureParameters)
Set the stored |
|
Sql |
withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName)
Set the stored |
|
Sql |
withTableOption(Object tableOption)
Set the table |
|
Sql |
withUpsertSettings(SqlUpsertSettings upsertSettings)
Set the upsert |
|
Sql |
withWriteBatchSize(Object writeBatchSize)
Set the write |
|
Sql |
withWriteBatchTimeout(Object writeBatchTimeout)
Set the write |
|
Sql |
withWriteBehavior(Object writeBehavior)
Set the write |
| Object |
writeBehavior()
Get the write |
Methods inherited from CopySink
Methods inherited from java.lang.Object
Constructor Details
SqlServerSink
public SqlServerSink()
Creates an instance of SqlServerSink class.
Method Details
fromJson
public static SqlServerSink fromJson(JsonReader jsonReader)
Reads an instance of SqlServerSink from the JsonReader.
Parameters:
Returns:
Throws:
preCopyScript
public Object preCopyScript()
Get the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string).
Returns:
sqlWriterStoredProcedureName
public Object sqlWriterStoredProcedureName()
Get the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with resultType string).
Returns:
sqlWriterTableType
public Object sqlWriterTableType()
Get the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string).
Returns:
sqlWriterUseTableLock
public Object sqlWriterUseTableLock()
Get the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
Returns:
storedProcedureParameters
public Object storedProcedureParameters()
Get the storedProcedureParameters property: SQL stored procedure parameters.
Returns:
storedProcedureTableTypeParameterName
public Object storedProcedureTableTypeParameterName()
Get the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. Type: string (or Expression with resultType string).
Returns:
tableOption
public Object 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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SqlServerSink.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Copy sink type.
Overrides:
SqlServerSink.type()Returns:
upsertSettings
public SqlUpsertSettings upsertSettings()
Get the upsertSettings property: SQL upsert settings.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
SqlServerSink.validate()withDisableMetricsCollection
public SqlServerSink withDisableMetricsCollection(Object disableMetricsCollection)
Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
Overrides:
SqlServerSink.withDisableMetricsCollection(Object disableMetricsCollection)Parameters:
withMaxConcurrentConnections
public SqlServerSink withMaxConcurrentConnections(Object maxConcurrentConnections)
Set the maxConcurrentConnections property: The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
Overrides:
SqlServerSink.withMaxConcurrentConnections(Object maxConcurrentConnections)Parameters:
withPreCopyScript
public SqlServerSink withPreCopyScript(Object preCopyScript)
Set the preCopyScript property: SQL pre-copy script. Type: string (or Expression with resultType string).
Parameters:
Returns:
withSinkRetryCount
public SqlServerSink withSinkRetryCount(Object sinkRetryCount)
Set the sinkRetryCount property: Sink retry count. Type: integer (or Expression with resultType integer).
Overrides:
SqlServerSink.withSinkRetryCount(Object sinkRetryCount)Parameters:
withSinkRetryWait
public SqlServerSink withSinkRetryWait(Object sinkRetryWait)
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:
SqlServerSink.withSinkRetryWait(Object sinkRetryWait)Parameters:
withSqlWriterStoredProcedureName
public SqlServerSink withSqlWriterStoredProcedureName(Object sqlWriterStoredProcedureName)
Set the sqlWriterStoredProcedureName property: SQL writer stored procedure name. Type: string (or Expression with resultType string).
Parameters:
Returns:
withSqlWriterTableType
public SqlServerSink withSqlWriterTableType(Object sqlWriterTableType)
Set the sqlWriterTableType property: SQL writer table type. Type: string (or Expression with resultType string).
Parameters:
Returns:
withSqlWriterUseTableLock
public SqlServerSink withSqlWriterUseTableLock(Object sqlWriterUseTableLock)
Set the sqlWriterUseTableLock property: Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
Parameters:
Returns:
withStoredProcedureParameters
public SqlServerSink withStoredProcedureParameters(Object storedProcedureParameters)
Set the storedProcedureParameters property: SQL stored procedure parameters.
Parameters:
Returns:
withStoredProcedureTableTypeParameterName
public SqlServerSink withStoredProcedureTableTypeParameterName(Object storedProcedureTableTypeParameterName)
Set the storedProcedureTableTypeParameterName property: The stored procedure parameter name of the table type. Type: string (or Expression with resultType string).
Parameters:
Returns:
withTableOption
public SqlServerSink withTableOption(Object tableOption)
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:
Returns:
withUpsertSettings
public SqlServerSink withUpsertSettings(SqlUpsertSettings upsertSettings)
Set the upsertSettings property: SQL upsert settings.
Parameters:
Returns:
withWriteBatchSize
public SqlServerSink withWriteBatchSize(Object writeBatchSize)
Set the writeBatchSize property: Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
Overrides:
SqlServerSink.withWriteBatchSize(Object writeBatchSize)Parameters:
withWriteBatchTimeout
public SqlServerSink withWriteBatchTimeout(Object writeBatchTimeout)
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:
SqlServerSink.withWriteBatchTimeout(Object writeBatchTimeout)Parameters:
withWriteBehavior
public SqlServerSink withWriteBehavior(Object writeBehavior)
Set the writeBehavior property: Write behavior when copying data into sql server. Type: string (or Expression with resultType string).
Parameters:
Returns:
writeBehavior
public Object writeBehavior()
Get the writeBehavior property: Write behavior when copying data into sql server. Type: string (or Expression with resultType string).
Returns: