public abstract class ScriptState extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ScriptState.AliasVisitor |
protected static class |
ScriptState.FeatureVisitor |
static class |
ScriptState.PIG_FEATURE
Features used in a Pig script
|
protected static class |
ScriptState.PIG_PROPERTY
Keys of Pig settings added to Jobs
|
Modifier and Type | Field and Description |
---|---|
protected String |
commandLine |
protected String |
fileName |
protected String |
hadoopVersion |
protected String |
id |
protected List<PigProgressNotificationListener> |
listeners |
protected PigContext |
pigContext |
protected String |
pigVersion |
protected long |
scriptFeatures |
protected String |
serializedScript |
protected String |
truncatedScript |
Modifier | Constructor and Description |
---|---|
protected |
ScriptState(String id) |
protected String id
protected String serializedScript
protected String truncatedScript
protected String commandLine
protected String fileName
protected String pigVersion
protected String hadoopVersion
protected long scriptFeatures
protected PigContext pigContext
protected List<PigProgressNotificationListener> listeners
protected ScriptState(String id)
public static ScriptState get()
public static ScriptState start(ScriptState state)
@Deprecated public static ScriptState start(String commandLine, PigContext pigContext)
start(ScriptState)
instead.public void registerListener(PigProgressNotificationListener listener)
public List<PigProgressNotificationListener> getAllListeners()
public void emitInitialPlanNotification(OperatorPlan<?> plan)
public void emitLaunchStartedNotification(int numJobsToLaunch)
public void emitJobsSubmittedNotification(int numJobsSubmitted)
public void emitJobStartedNotification(String assignedJobId)
public void emitjobFinishedNotification(JobStats jobStats)
public void emitJobFailedNotification(JobStats jobStats)
public void emitOutputCompletedNotification(OutputStats outputStats)
public void emitProgressUpdatedNotification(int progress)
public void emitLaunchCompletedNotification(int numJobsSucceeded)
public void setScript(File file) throws IOException
IOException
public void setScript(String script) throws IOException
IOException
public void setScriptFeatures(LogicalPlan plan)
public String getHadoopVersion()
public String getPigVersion()
public String getFileName()
public void setFileName(String fileName)
public String getId()
public void setCommandLine(String commandLine)
public String getCommandLine()
public String getSerializedScript()
public String getScript()
protected void setScript(BufferedReader reader) throws IOException
IOException
protected long bitSetToLong(BitSet bs)
protected String featureLongToString(long l)
public void setPigContext(PigContext pigContext)
public PigContext getPigContext()
public String getScriptFeatures()
Copyright © 2007-2012 The Apache Software Foundation