public class ScriptState extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INSERT_ENABLED
Pig property that allows user to turn off the inclusion of settings
in the jobs
|
static int |
MAX_SCRIPT_SIZE
Restricts the size of Pig script stored in job xml
|
public static final String INSERT_ENABLED
public static final int MAX_SCRIPT_SIZE
public static ScriptState start(String commandLine, PigContext pigContext)
public static ScriptState get()
public void registerListener(PigProgressNotificationListener listener)
public List<PigProgressNotificationListener> getAllListeners()
public void emitInitialPlanNotification(MROperPlan 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 addSettingsToConf(MapReduceOper mro, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic void addWorkflowAdjacenciesToConf(MROperPlan mrop, org.apache.hadoop.conf.Configuration conf)
public void setScript(File file)
public void setScript(String script)
public void setScriptFeatures(LogicalPlan plan)
public String getHadoopVersion()
public String getPigVersion()
public String getFileName()
public void setFileName(String fileName)
public String getAlias(MapReduceOper mro)
public String getAliasLocation(MapReduceOper mro)
public String getPigFeature(MapReduceOper mro)
public void setPigContext(PigContext pigContext)
public PigContext getPigContext()
Copyright © 2007-2012 The Apache Software Foundation