public abstract class ScriptState
extends java.lang.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 java.lang.String |
commandLine |
protected java.lang.String |
fileName |
protected java.lang.String |
hadoopVersion |
protected java.lang.String |
id |
protected java.util.List<PigProgressNotificationListener> |
listeners |
protected PigContext |
pigContext |
protected java.lang.String |
pigVersion |
protected long |
scriptFeatures |
protected java.lang.String |
serializedScript |
protected java.lang.String |
truncatedScript |
Modifier | Constructor and Description |
---|---|
protected |
ScriptState(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
protected long |
bitSetToLong(java.util.BitSet bs) |
void |
emitInitialPlanNotification(OperatorPlan<?> plan) |
void |
emitJobFailedNotification(JobStats jobStats) |
void |
emitjobFinishedNotification(JobStats jobStats) |
void |
emitJobsSubmittedNotification(int numJobsSubmitted) |
void |
emitJobStartedNotification(java.lang.String assignedJobId) |
void |
emitLaunchCompletedNotification(int numJobsSucceeded) |
void |
emitLaunchStartedNotification(int numJobsToLaunch) |
void |
emitOutputCompletedNotification(OutputStats outputStats) |
void |
emitProgressUpdatedNotification(int progress) |
protected java.lang.String |
featureLongToString(long l) |
static ScriptState |
get() |
java.util.List<PigProgressNotificationListener> |
getAllListeners() |
java.lang.String |
getCommandLine() |
java.lang.String |
getFileName() |
java.lang.String |
getHadoopVersion() |
java.lang.String |
getId() |
PigContext |
getPigContext() |
java.lang.String |
getPigVersion() |
java.lang.String |
getScript() |
java.lang.String |
getScriptFeatures() |
java.lang.String |
getSerializedScript() |
void |
registerListener(PigProgressNotificationListener listener) |
void |
setCommandLine(java.lang.String commandLine) |
void |
setFileName(java.lang.String fileName) |
void |
setPigContext(PigContext pigContext) |
protected void |
setScript(java.io.BufferedReader reader) |
void |
setScript(java.io.File file) |
void |
setScript(java.lang.String script) |
void |
setScriptFeatures(LogicalPlan plan) |
static ScriptState |
start(ScriptState state) |
static ScriptState |
start(java.lang.String commandLine,
PigContext pigContext)
Deprecated.
use
start(ScriptState) instead. |
protected java.lang.String id
protected java.lang.String serializedScript
protected java.lang.String truncatedScript
protected java.lang.String commandLine
protected java.lang.String fileName
protected java.lang.String pigVersion
protected java.lang.String hadoopVersion
protected long scriptFeatures
protected PigContext pigContext
protected java.util.List<PigProgressNotificationListener> listeners
public static ScriptState get()
public static ScriptState start(ScriptState state)
@Deprecated public static ScriptState start(java.lang.String commandLine, PigContext pigContext)
start(ScriptState)
instead.public void registerListener(PigProgressNotificationListener listener)
public java.util.List<PigProgressNotificationListener> getAllListeners()
public void emitInitialPlanNotification(OperatorPlan<?> plan)
public void emitLaunchStartedNotification(int numJobsToLaunch)
public void emitJobsSubmittedNotification(int numJobsSubmitted)
public void emitJobStartedNotification(java.lang.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(java.io.File file) throws java.io.IOException
java.io.IOException
public void setScript(java.lang.String script) throws java.io.IOException
java.io.IOException
public void setScriptFeatures(LogicalPlan plan)
public java.lang.String getHadoopVersion()
public java.lang.String getPigVersion()
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public java.lang.String getId()
public void setCommandLine(java.lang.String commandLine)
public java.lang.String getCommandLine()
public java.lang.String getSerializedScript()
public java.lang.String getScript()
protected void setScript(java.io.BufferedReader reader) throws java.io.IOException
java.io.IOException
protected long bitSetToLong(java.util.BitSet bs)
protected java.lang.String featureLongToString(long l)
public void setPigContext(PigContext pigContext)
public PigContext getPigContext()
public java.lang.String getScriptFeatures()
Copyright © 2007-2017 The Apache Software Foundation