ExecJob.JOB_STATUS| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected Exception |
backendException |
protected FileSpec |
outFileSpec |
protected PigContext |
pigContext |
protected POStore |
poStore |
protected ExecJob.JOB_STATUS |
status |
PROGRESS_KEY| Constructor and Description |
|---|
HJob(ExecJob.JOB_STATUS status,
PigContext pigContext,
POStore store,
String alias) |
HJob(ExecJob.JOB_STATUS status,
PigContext pigContext,
POStore store,
String alias,
PigStats stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
completionNotification(Object cookie)
hook for asynchronous notification of job completion pushed from the back-end
|
String |
getAlias()
Returns the alias of relation generated by this job
|
Properties |
getConfiguration()
Get configuration information
|
Exception |
getException()
Get exceptions that happened during execution
|
void |
getLogs(OutputStream log)
Collecting various forms of outputs
|
POStore |
getPOStore() |
Iterator<Tuple> |
getResults()
if query has executed successfully we want to retrieve the results
via iterating over them.
|
PigStats |
getStatistics()
Can be information about the state (not submitted, e.g.
|
ExecJob.JOB_STATUS |
getStatus() |
void |
getSTDError(OutputStream error) |
void |
getSTDOut(OutputStream out) |
boolean |
hasCompleted()
true is the physical plan has executed successfully and results are ready
to be retrieved
|
void |
kill()
Kills current job.
|
void |
setException(Exception e) |
protected ExecJob.JOB_STATUS status
protected PigContext pigContext
protected FileSpec outFileSpec
protected Exception backendException
protected String alias
protected POStore poStore
public HJob(ExecJob.JOB_STATUS status, PigContext pigContext, POStore store, String alias)
public HJob(ExecJob.JOB_STATUS status, PigContext pigContext, POStore store, String alias, PigStats stats)
public ExecJob.JOB_STATUS getStatus()
public boolean hasCompleted()
throws ExecException
ExecJobhasCompleted in interface ExecJobExecExceptionpublic Iterator<Tuple> getResults() throws ExecException
ExecJobgetResults in interface ExecJobExecExceptionpublic Properties getConfiguration()
ExecJobgetConfiguration in interface ExecJobpublic PigStats getStatistics()
ExecJobgetStatistics in interface ExecJobpublic void completionNotification(Object cookie)
ExecJobcompletionNotification in interface ExecJobpublic void kill()
throws ExecException
ExecJobkill in interface ExecJobExecExceptionpublic void getLogs(OutputStream log) throws ExecException
ExecJobgetLogs in interface ExecJobExecExceptionpublic void getSTDOut(OutputStream out) throws ExecException
getSTDOut in interface ExecJobExecExceptionpublic void getSTDError(OutputStream error) throws ExecException
getSTDError in interface ExecJobExecExceptionpublic void setException(Exception e)
public Exception getException()
ExecJobgetException in interface ExecJobpublic String getAlias() throws ExecException
ExecJobgetAlias in interface ExecJobExecExceptionpublic POStore getPOStore()
getPOStore in interface ExecJobCopyright © 2007-2017 The Apache Software Foundation