类 PigStepConfig
- java.lang.Object
-
- com.baidubce.services.bmr.model.StepConfig
-
- com.baidubce.services.bmr.model.PigStepConfig
-
public class PigStepConfig extends StepConfig
Represent configuration for a pig step.A pig step can be configured with name, actionOnFailure, script, input, output and arguments. The essential options are script and actionOnFailure, and the optional ones are name, input, output and arguments.
-
-
构造器概要
构造器 构造器 说明 PigStepConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PigStepConfigwithActionOnFailure(String actionOnFailure)Configure the action on failure for the pig step.PigStepConfigwithAdditionalFile(String remote, String local)Configure the additional file for the step.PigStepConfigwithArguments(String arguments)Configure the arguments of the pig step.PigStepConfigwithInput(String input)Configure the input path of the pig step.PigStepConfigwithName(String name)Configure the name of the pig step.PigStepConfigwithOutput(String output)Configure the output path of the pig step.PigStepConfigwithScript(String script)Configure the script path of the pig step.-
从类继承的方法 com.baidubce.services.bmr.model.StepConfig
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType, withAdditionalFiles, withProperties, withType
-
-
-
-
方法详细资料
-
withInput
public PigStepConfig withInput(String input)
Configure the input path of the pig step.- 参数:
input- The input path of the pig step.- 返回:
- PigStepConfig
-
withScript
public PigStepConfig withScript(String script)
Configure the script path of the pig step.- 参数:
script- The script path of the pig step.- 返回:
- PigStepConfig
-
withOutput
public PigStepConfig withOutput(String output)
Configure the output path of the pig step.- 参数:
output- The output path of the pig step.- 返回:
- PigStepConfig
-
withArguments
public PigStepConfig withArguments(String arguments)
Configure the arguments of the pig step.- 参数:
arguments- The arguments of the pig step.- 返回:
- PigStepConfig
-
withName
public PigStepConfig withName(String name)
Configure the name of the pig step.- 覆盖:
withName在类中StepConfig- 参数:
name- The name of the pig step.- 返回:
- PigStepConfig
-
withActionOnFailure
public PigStepConfig withActionOnFailure(String actionOnFailure)
Configure the action on failure for the pig step. This property is set to enum value: "Continue": continue to execute other steps. "TerminateCluster": terminate the cluster when this step fails. "CancelAndWait": cancel the other pending steps and set the cluster's status to WAITING.- 覆盖:
withActionOnFailure在类中StepConfig- 参数:
actionOnFailure- The action on step's failure.- 返回:
- PigStepConfig
-
withAdditionalFile
public PigStepConfig withAdditionalFile(String remote, String local)
Configure the additional file for the step.- 参数:
remote- The remote file of the additional file.local- The local file of the additional file.- 返回:
- PigStepConfig
-
-