public interface ExecJob
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExecJob.JOB_STATUS |
| Modifier and Type | Field and Description |
|---|---|
static String |
PROGRESS_KEY |
| 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.
|
static final String PROGRESS_KEY
ExecJob.JOB_STATUS getStatus()
boolean hasCompleted()
throws ExecException
ExecExceptionIterator<Tuple> getResults() throws ExecException
ExecExceptionString getAlias() throws ExecException
ExecExceptionProperties getConfiguration()
PigStats getStatistics()
void completionNotification(Object cookie)
void kill() throws ExecException
ExecExceptionvoid getLogs(OutputStream log) throws ExecException
ExecExceptionvoid getSTDOut(OutputStream out) throws ExecException
ExecExceptionvoid getSTDError(OutputStream error) throws ExecException
ExecExceptionException getException()
Copyright © 2007-2017 The Apache Software Foundation