ExecJob.JOB_STATUS
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
alias |
protected java.lang.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,
java.lang.String alias) |
HJob(ExecJob.JOB_STATUS status,
PigContext pigContext,
POStore store,
java.lang.String alias,
PigStats stats) |
Modifier and Type | Method and Description |
---|---|
void |
completionNotification(java.lang.Object cookie)
hook for asynchronous notification of job completion pushed from the back-end
|
java.lang.String |
getAlias()
Returns the alias of relation generated by this job
|
java.util.Properties |
getConfiguration()
Get configuration information
|
java.lang.Exception |
getException()
Get exceptions that happened during execution
|
void |
getLogs(java.io.OutputStream log)
Collecting various forms of outputs
|
POStore |
getPOStore() |
java.util.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(java.io.OutputStream error) |
void |
getSTDOut(java.io.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(java.lang.Exception e) |
protected ExecJob.JOB_STATUS status
protected PigContext pigContext
protected FileSpec outFileSpec
protected java.lang.Exception backendException
protected java.lang.String alias
protected POStore poStore
public HJob(ExecJob.JOB_STATUS status, PigContext pigContext, POStore store, java.lang.String alias)
public HJob(ExecJob.JOB_STATUS status, PigContext pigContext, POStore store, java.lang.String alias, PigStats stats)
public ExecJob.JOB_STATUS getStatus()
public boolean hasCompleted() throws ExecException
ExecJob
hasCompleted
in interface ExecJob
ExecException
public java.util.Iterator<Tuple> getResults() throws ExecException
ExecJob
getResults
in interface ExecJob
ExecException
public java.util.Properties getConfiguration()
ExecJob
getConfiguration
in interface ExecJob
public PigStats getStatistics()
ExecJob
getStatistics
in interface ExecJob
public void completionNotification(java.lang.Object cookie)
ExecJob
completionNotification
in interface ExecJob
public void kill() throws ExecException
ExecJob
kill
in interface ExecJob
ExecException
public void getLogs(java.io.OutputStream log) throws ExecException
ExecJob
getLogs
in interface ExecJob
ExecException
public void getSTDOut(java.io.OutputStream out) throws ExecException
getSTDOut
in interface ExecJob
ExecException
public void getSTDError(java.io.OutputStream error) throws ExecException
getSTDError
in interface ExecJob
ExecException
public void setException(java.lang.Exception e)
public java.lang.Exception getException()
ExecJob
getException
in interface ExecJob
public java.lang.String getAlias() throws ExecException
ExecJob
getAlias
in interface ExecJob
ExecException
public POStore getPOStore()
getPOStore
in interface ExecJob
Copyright © 2007-2012 The Apache Software Foundation