DatabricksSparkPythonActivity Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. Activity - com.
azure. resourcemanager. datafactory. models. ExecutionActivity - com.
azure. resourcemanager. datafactory. models. DatabricksSparkPythonActivity
- com.
- com.
- com.
public final 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>> |
libraries()
Get the libraries property: A list of libraries to be installed on the cluster that will execute the job. |
| List<Object> |
parameters()
Get the parameters property: Command line parameters that will be passed to the Python file. |
| Object |
pythonFile()
Get the python |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of activity. |
| void |
validate()
Validates the instance. |
|
Databricks |
withDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
Databricks |
withDescription(String description)
Set the description property: Activity description. |
|
Databricks |
withLibraries(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 |
withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linked |
|
Databricks |
withName(String name)
Set the name property: Activity name. |
|
Databricks |
withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
Databricks |
withParameters(List<Object> parameters)
Set the parameters property: Command line parameters that will be passed to the Python file. |
|
Databricks |
withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy. |
|
Databricks |
withPythonFile(Object pythonFile)
Set the python |
|
Databricks |
withState(ActivityState state)
Set the state property: Activity state. |
|
Databricks |
withUserProperties(List<UserProperty> userProperties)
Set the user |
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:
libraries
public List<Map<String,Object>> libraries()
Get the libraries property: A list of libraries to be installed on the cluster that will execute the job.
Returns:
parameters
public List<Object> parameters()
Get the parameters property: Command line parameters that will be passed to the Python file.
Returns:
pythonFile
public Object pythonFile()
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DatabricksSparkPythonActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of activity.
Overrides:
DatabricksSparkPythonActivity.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
DatabricksSparkPythonActivity.validate()withDependsOn
public DatabricksSparkPythonActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
DatabricksSparkPythonActivity.withDependsOn(List<ActivityDependency> dependsOn)Parameters:
withDescription
public DatabricksSparkPythonActivity withDescription(String description)
Set the description property: Activity description.
Overrides:
DatabricksSparkPythonActivity.withDescription(String description)Parameters:
withLibraries
public DatabricksSparkPythonActivity withLibraries(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:
withLinkedServiceName
public DatabricksSparkPythonActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)
Set the linkedServiceName property: Linked service reference.
Overrides:
DatabricksSparkPythonActivity.withLinkedServiceName(LinkedServiceReference linkedServiceName)Parameters:
withName
public DatabricksSparkPythonActivity withName(String name)
Set the name property: Activity name.
Overrides:
DatabricksSparkPythonActivity.withName(String name)Parameters:
withOnInactiveMarkAs
public DatabricksSparkPythonActivity withOnInactiveMarkAs(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.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
withParameters
public DatabricksSparkPythonActivity withParameters(List<Object> parameters)
Set the parameters property: Command line parameters that will be passed to the Python file.
Parameters:
Returns:
withPolicy
public DatabricksSparkPythonActivity withPolicy(ActivityPolicy policy)
Set the policy property: Activity policy.
Overrides:
DatabricksSparkPythonActivity.withPolicy(ActivityPolicy policy)Parameters:
withPythonFile
public DatabricksSparkPythonActivity withPythonFile(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:
withState
public DatabricksSparkPythonActivity withState(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.withState(ActivityState state)Parameters:
withUserProperties
public DatabricksSparkPythonActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
DatabricksSparkPythonActivity.withUserProperties(List<UserProperty> userProperties)Parameters: