DatabricksSparkPythonActivity Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. Activity - com.
azure. analytics. synapse. artifacts. models. ExecutionActivity - com.
azure. analytics. synapse. artifacts. models. DatabricksSparkPythonActivity
- com.
- com.
- com.
public class DatabricksSparkPythonActivity
extends ExecutionActivity
DatabricksSparkPython activity.
Constructor Summary
| Constructor | Description |
|---|---|
| DatabricksSparkPythonActivity() |
Creates an instance of Databricks |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Databricks |
fromJson(JsonReader jsonReader)
Reads an instance of Databricks |
| List<Map<String,Object>> |
getLibraries()
Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. |
| List<Object> |
getParameters()
Get the parameters property: Command line parameters that will be passed to the Python file. |
| Object |
getPythonFile()
Get the python |
| String |
getType()
Get the type property: Type of activity. |
|
Databricks |
setDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Databricks |
setDescription(String description)
Set the description property: Activity description. |
|
Databricks |
setLibraries(List<Map<String,Object>> libraries)
Set the libraries property: A list of libraries to be installed on the cluster that will execute the job. |
|
Databricks |
setLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linked |
|
Databricks |
setName(String name)
Set the name property: Activity name. |
|
Databricks |
setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Databricks |
setParameters(List<Object> parameters)
Set the parameters property: Command line parameters that will be passed to the Python file. |
|
Databricks |
setPolicy(ActivityPolicy policy)
Set the policy property: Activity policy. |
|
Databricks |
setPythonFile(Object pythonFile)
Set the python |
|
Databricks |
setState(ActivityState state)
Set the state property: Activity state. |
|
Databricks |
setUserProperties(List<UserProperty> userProperties)
Set the user |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from Activity
Methods inherited from ExecutionActivity
Methods inherited from java.lang.Object
Constructor Details
DatabricksSparkPythonActivity
public DatabricksSparkPythonActivity()
Creates an instance of DatabricksSparkPythonActivity class.
Method Details
fromJson
public static DatabricksSparkPythonActivity fromJson(JsonReader jsonReader)
Reads an instance of DatabricksSparkPythonActivity from the JsonReader.
Parameters:
Returns:
Throws:
getLibraries
public List<Map<String,Object>> getLibraries()
Get the libraries property: A list of libraries to be installed on the cluster that will execute the job.
Returns:
getParameters
public List<Object> getParameters()
Get the parameters property: Command line parameters that will be passed to the Python file.
Returns:
getPythonFile
public Object getPythonFile()
Get the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string).
Returns:
getType
public String getType()
Get the type property: Type of activity.
Overrides:
DatabricksSparkPythonActivity.getType()Returns:
setDependsOn
public DatabricksSparkPythonActivity setDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
DatabricksSparkPythonActivity.setDependsOn(List<ActivityDependency> dependsOn)Parameters:
setDescription
public DatabricksSparkPythonActivity setDescription(String description)
Set the description property: Activity description.
Overrides:
DatabricksSparkPythonActivity.setDescription(String description)Parameters:
setLibraries
public DatabricksSparkPythonActivity setLibraries(List<Map<String,Object>> libraries)
Set the libraries property: A list of libraries to be installed on the cluster that will execute the job.
Parameters:
Returns:
setLinkedServiceName
public DatabricksSparkPythonActivity setLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.
Overrides:
DatabricksSparkPythonActivity.setLinkedServiceName(LinkedServiceReference linkedServiceName)Parameters:
setName
public DatabricksSparkPythonActivity setName(String name)
Set the name property: Activity name.
Overrides:
DatabricksSparkPythonActivity.setName(String name)Parameters:
setOnInactiveMarkAs
public DatabricksSparkPythonActivity setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
Overrides:
DatabricksSparkPythonActivity.setOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
setParameters
public DatabricksSparkPythonActivity setParameters(List<Object> parameters)
Set the parameters property: Command line parameters that will be passed to the Python file.
Parameters:
Returns:
setPolicy
public DatabricksSparkPythonActivity setPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.
Overrides:
DatabricksSparkPythonActivity.setPolicy(ActivityPolicy policy)Parameters:
setPythonFile
public DatabricksSparkPythonActivity setPythonFile(Object pythonFile)
Set the pythonFile property: The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string).
Parameters:
Returns:
setState
public DatabricksSparkPythonActivity setState(ActivityState state)
Set the state property: Activity state. This is an optional property and if not provided, the state will be Active by default.
Overrides:
DatabricksSparkPythonActivity.setState(ActivityState state)Parameters:
setUserProperties
public DatabricksSparkPythonActivity setUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
DatabricksSparkPythonActivity.setUserProperties(List<UserProperty> userProperties)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DatabricksSparkPythonActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws: