SqlServerSource Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. CopySource - com.
azure. analytics. synapse. artifacts. models. TabularSource - com.
azure. analytics. synapse. artifacts. models. SqlServerSource
- com.
- com.
- com.
public final class SqlServerSource
extends TabularSource
A copy activity SQL server source.
Constructor Summary
| Constructor | Description |
|---|---|
| SqlServerSource() |
Creates an instance of Sql |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
| Object |
getIsolationLevel()
Get the isolation |
| Object |
getPartitionOption()
Get the partition |
|
Sql |
getPartitionSettings()
Get the partition |
| Object |
getProduceAdditionalTypes()
Get the produce |
| Object |
getSqlReaderQuery()
Get the sql |
| Object |
getSqlReaderStoredProcedureName()
Get the sql |
| Object |
getStoredProcedureParameters()
Get the stored |
| String |
getType()
Get the type property: Copy source type. |
|
Sql |
setAdditionalColumns(Object additionalColumns)
Set the additional |
|
Sql |
setIsolationLevel(Object isolationLevel)
Set the isolation |
|
Sql |
setMaxConcurrentConnections(Object maxConcurrentConnections)
Set the max |
|
Sql |
setPartitionOption(Object partitionOption)
Set the partition |
|
Sql |
setPartitionSettings(SqlPartitionSettings partitionSettings)
Set the partition |
|
Sql |
setProduceAdditionalTypes(Object produceAdditionalTypes)
Set the produce |
|
Sql |
setQueryTimeout(Object queryTimeout)
Set the query |
|
Sql |
setSourceRetryCount(Object sourceRetryCount)
Set the source |
|
Sql |
setSourceRetryWait(Object sourceRetryWait)
Set the source |
|
Sql |
setSqlReaderQuery(Object sqlReaderQuery)
Set the sql |
|
Sql |
setSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName)
Set the sql |
|
Sql |
setStoredProcedureParameters(Object storedProcedureParameters)
Set the stored |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from CopySource
Methods inherited from TabularSource
Methods inherited from java.lang.Object
Constructor Details
SqlServerSource
public SqlServerSource()
Creates an instance of SqlServerSource class.
Method Details
fromJson
public static SqlServerSource fromJson(JsonReader jsonReader)
Reads an instance of SqlServerSource from the JsonReader.
Parameters:
Returns:
Throws:
getIsolationLevel
public Object getIsolationLevel()
Get the isolationLevel property: Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string).
Returns:
getPartitionOption
public Object getPartitionOption()
Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange".
Returns:
getPartitionSettings
public SqlPartitionSettings getPartitionSettings()
Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning.
Returns:
getProduceAdditionalTypes
public Object getProduceAdditionalTypes()
Get the produceAdditionalTypes property: Which additional types to produce.
Returns:
getSqlReaderQuery
public Object getSqlReaderQuery()
Get the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string).
Returns:
getSqlReaderStoredProcedureName
public Object getSqlReaderStoredProcedureName()
Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string).
Returns:
getStoredProcedureParameters
public Object getStoredProcedureParameters()
Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}".
Returns:
getType
public String getType()
Get the type property: Copy source type.
Overrides:
SqlServerSource.getType()Returns:
setAdditionalColumns
public SqlServerSource setAdditionalColumns(Object additionalColumns)
Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).
Overrides:
SqlServerSource.setAdditionalColumns(Object additionalColumns)Parameters:
setIsolationLevel
public SqlServerSource setIsolationLevel(Object isolationLevel)
Set the isolationLevel property: Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string).
Parameters:
Returns:
setMaxConcurrentConnections
public SqlServerSource setMaxConcurrentConnections(Object maxConcurrentConnections)
Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
Overrides:
SqlServerSource.setMaxConcurrentConnections(Object maxConcurrentConnections)Parameters:
setPartitionOption
public SqlServerSource setPartitionOption(Object partitionOption)
Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange".
Parameters:
Returns:
setPartitionSettings
public SqlServerSource setPartitionSettings(SqlPartitionSettings partitionSettings)
Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning.
Parameters:
Returns:
setProduceAdditionalTypes
public SqlServerSource setProduceAdditionalTypes(Object produceAdditionalTypes)
Set the produceAdditionalTypes property: Which additional types to produce.
Parameters:
Returns:
setQueryTimeout
public SqlServerSource setQueryTimeout(Object queryTimeout)
Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Overrides:
SqlServerSource.setQueryTimeout(Object queryTimeout)Parameters:
setSourceRetryCount
public SqlServerSource setSourceRetryCount(Object sourceRetryCount)
Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer).
Overrides:
SqlServerSource.setSourceRetryCount(Object sourceRetryCount)Parameters:
setSourceRetryWait
public SqlServerSource setSourceRetryWait(Object sourceRetryWait)
Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Overrides:
SqlServerSource.setSourceRetryWait(Object sourceRetryWait)Parameters:
setSqlReaderQuery
public SqlServerSource setSqlReaderQuery(Object sqlReaderQuery)
Set the sqlReaderQuery property: SQL reader query. Type: string (or Expression with resultType string).
Parameters:
Returns:
setSqlReaderStoredProcedureName
public SqlServerSource setSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName)
Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string).
Parameters:
Returns:
setStoredProcedureParameters
public SqlServerSource setStoredProcedureParameters(Object storedProcedureParameters)
Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}".
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SqlServerSource.toJson(JsonWriter jsonWriter)Parameters:
Throws: