@InterfaceAudience.Private @InterfaceStability.Unstable public class PigActionBuilder extends NodeBuilderBaseImpl<PigActionBuilder> implements Builder<PigAction>
PigAction.
The properties of the builder can only be set once, an attempt to set them a second time will trigger
an IllegalStateException. The properties that are lists are an exception to this rule, of course multiple
elements can be added / removed.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to build() either.| Modifier and Type | Field and Description |
|---|---|
protected ActionAttributesBuilder |
attributesBuilder |
protected List<String> |
params |
protected ModifyOnce<String> |
script |
addAsChildToAllParents, clearCredentials, clearParents, withCredential, withErrorHandler, withName, withoutCredential, withoutErrorHandler, withoutParent, withParent, withParentDefaultConditional, withParentWithCondition, withRetryInterval, withRetryMax, withRetryPolicyprotected final ActionAttributesBuilder attributesBuilder
protected final ModifyOnce<String> script
public static PigActionBuilder create()
public static PigActionBuilder createFromExistingAction(PigAction action)
public static PigActionBuilder createFromExistingAction(Node action)
public PigActionBuilder withResourceManager(String resourceManager)
public PigActionBuilder withNameNode(String nameNode)
public PigActionBuilder withPrepare(Prepare prepare)
public PigActionBuilder withLauncher(Launcher launcher)
public PigActionBuilder withJobXml(String jobXml)
public PigActionBuilder withoutJobXml(String jobXml)
public PigActionBuilder clearJobXmls()
public PigActionBuilder withConfigProperty(String key, String value)
public PigActionBuilder withScript(String script)
public PigActionBuilder withParam(String param)
public PigActionBuilder withoutParam(String param)
public PigActionBuilder clearParams()
public PigActionBuilder withArg(String arg)
public PigActionBuilder withoutArg(String arg)
public PigActionBuilder clearArgs()
public PigActionBuilder withFile(String file)
public PigActionBuilder withoutFile(String file)
public PigActionBuilder clearFiles()
public PigActionBuilder withArchive(String archive)
public PigActionBuilder withoutArchive(String archive)
public PigActionBuilder clearArchives()
public PigAction build()
Builderprotected PigActionBuilder getRuntimeSelfReference()
getRuntimeSelfReference in class NodeBuilderBaseImpl<PigActionBuilder>Copyright © 2021 Apache Software Foundation. All rights reserved.