Class SynapseSparkJobDefinitionActivity


public final class SynapseSparkJobDefinitionActivity extends ExecutionActivity
Execute spark job activity.
  • Constructor Details

    • SynapseSparkJobDefinitionActivity

      public SynapseSparkJobDefinitionActivity()
  • Method Details

    • withLinkedServiceName

      public SynapseSparkJobDefinitionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)
      Set the linkedServiceName property: Linked service reference.
      Overrides:
      withLinkedServiceName in class ExecutionActivity
      Parameters:
      linkedServiceName - the linkedServiceName value to set.
      Returns:
      the ExecutionActivity object itself.
    • withPolicy

      Set the policy property: Activity policy.
      Overrides:
      withPolicy in class ExecutionActivity
      Parameters:
      policy - the policy value to set.
      Returns:
      the ExecutionActivity object itself.
    • withName

      public SynapseSparkJobDefinitionActivity withName(String name)
      Set the name property: Activity name.
      Overrides:
      withName in class ExecutionActivity
      Parameters:
      name - the name value to set.
      Returns:
      the Activity object itself.
    • withDescription

      public SynapseSparkJobDefinitionActivity withDescription(String description)
      Set the description property: Activity description.
      Overrides:
      withDescription in class ExecutionActivity
      Parameters:
      description - the description value to set.
      Returns:
      the Activity object itself.
    • withDependsOn

      public SynapseSparkJobDefinitionActivity withDependsOn(List<ActivityDependency> dependsOn)
      Set the dependsOn property: Activity depends on condition.
      Overrides:
      withDependsOn in class ExecutionActivity
      Parameters:
      dependsOn - the dependsOn value to set.
      Returns:
      the Activity object itself.
    • withUserProperties

      public SynapseSparkJobDefinitionActivity withUserProperties(List<UserProperty> userProperties)
      Set the userProperties property: Activity user properties.
      Overrides:
      withUserProperties in class ExecutionActivity
      Parameters:
      userProperties - the userProperties value to set.
      Returns:
      the Activity object itself.
    • sparkJob

      public SynapseSparkJobReference sparkJob()
      Get the sparkJob property: Synapse spark job reference.
      Returns:
      the sparkJob value.
    • withSparkJob

      Set the sparkJob property: Synapse spark job reference.
      Parameters:
      sparkJob - the sparkJob value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • arguments

      public List<Object> arguments()
      Get the arguments property: User specified arguments to SynapseSparkJobDefinitionActivity.
      Returns:
      the arguments value.
    • withArguments

      public SynapseSparkJobDefinitionActivity withArguments(List<Object> arguments)
      Set the arguments property: User specified arguments to SynapseSparkJobDefinitionActivity.
      Parameters:
      arguments - the arguments value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • file

      public Object file()
      Get the file property: The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Returns:
      the file value.
    • withFile

      public SynapseSparkJobDefinitionActivity withFile(Object file)
      Set the file property: The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Parameters:
      file - the file value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • className

      public Object className()
      Get the className property: The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Returns:
      the className value.
    • withClassName

      public SynapseSparkJobDefinitionActivity withClassName(Object className)
      Set the className property: The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Parameters:
      className - the className value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • files

      public List<Object> files()
      Get the files property: Additional files used for reference in the main definition file, which will override the 'files' of the spark job definition you provide.
      Returns:
      the files value.
    • withFiles

      public SynapseSparkJobDefinitionActivity withFiles(List<Object> files)
      Set the files property: Additional files used for reference in the main definition file, which will override the 'files' of the spark job definition you provide.
      Parameters:
      files - the files value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • targetBigDataPool

      public BigDataPoolParametrizationReference targetBigDataPool()
      Get the targetBigDataPool property: The name of the big data pool which will be used to execute the spark batch job, which will override the 'targetBigDataPool' of the spark job definition you provide.
      Returns:
      the targetBigDataPool value.
    • withTargetBigDataPool

      public SynapseSparkJobDefinitionActivity withTargetBigDataPool(BigDataPoolParametrizationReference targetBigDataPool)
      Set the targetBigDataPool property: The name of the big data pool which will be used to execute the spark batch job, which will override the 'targetBigDataPool' of the spark job definition you provide.
      Parameters:
      targetBigDataPool - the targetBigDataPool value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • executorSize

      public Object executorSize()
      Get the executorSize property: Number of core and memory to be used for executors allocated in the specified Spark pool for the job, which will be used for overriding 'executorCores' and 'executorMemory' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Returns:
      the executorSize value.
    • withExecutorSize

      public SynapseSparkJobDefinitionActivity withExecutorSize(Object executorSize)
      Set the executorSize property: Number of core and memory to be used for executors allocated in the specified Spark pool for the job, which will be used for overriding 'executorCores' and 'executorMemory' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Parameters:
      executorSize - the executorSize value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • conf

      public Object conf()
      Get the conf property: Spark configuration properties, which will override the 'conf' of the spark job definition you provide.
      Returns:
      the conf value.
    • withConf

      public SynapseSparkJobDefinitionActivity withConf(Object conf)
      Set the conf property: Spark configuration properties, which will override the 'conf' of the spark job definition you provide.
      Parameters:
      conf - the conf value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • driverSize

      public Object driverSize()
      Get the driverSize property: Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for overriding 'driverCores' and 'driverMemory' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Returns:
      the driverSize value.
    • withDriverSize

      public SynapseSparkJobDefinitionActivity withDriverSize(Object driverSize)
      Set the driverSize property: Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for overriding 'driverCores' and 'driverMemory' of the spark job definition you provide. Type: string (or Expression with resultType string).
      Parameters:
      driverSize - the driverSize value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • numExecutors

      public Integer numExecutors()
      Get the numExecutors property: Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide.
      Returns:
      the numExecutors value.
    • withNumExecutors

      public SynapseSparkJobDefinitionActivity withNumExecutors(Integer numExecutors)
      Set the numExecutors property: Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide.
      Parameters:
      numExecutors - the numExecutors value to set.
      Returns:
      the SynapseSparkJobDefinitionActivity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ExecutionActivity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.