|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.backend.hadoop.executionengine.HJob
public class HJob
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pig.backend.executionengine.ExecJob |
---|
ExecJob.JOB_STATUS |
Field Summary | |
---|---|
protected String |
alias
|
protected Exception |
backendException
|
protected FileSpec |
outFileSpec
|
protected PigContext |
pigContext
|
protected POStore |
poStore
|
protected ExecJob.JOB_STATUS |
status
|
Fields inherited from interface org.apache.pig.backend.executionengine.ExecJob |
---|
PROGRESS_KEY |
Constructor Summary | |
---|---|
HJob(ExecJob.JOB_STATUS status,
PigContext pigContext,
POStore store,
String alias)
|
|
HJob(ExecJob.JOB_STATUS status,
PigContext pigContext,
POStore store,
String alias,
PigStats stats)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ExecJob.JOB_STATUS status
protected PigContext pigContext
protected FileSpec outFileSpec
protected Exception backendException
protected String alias
protected POStore poStore
Constructor Detail |
---|
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)
Method Detail |
---|
public ExecJob.JOB_STATUS getStatus()
getStatus
in interface ExecJob
public boolean hasCompleted() throws ExecException
ExecJob
hasCompleted
in interface ExecJob
ExecException
public Iterator<Tuple> getResults() throws ExecException
ExecJob
getResults
in interface ExecJob
ExecException
public Properties getConfiguration()
ExecJob
getConfiguration
in interface ExecJob
public PigStats getStatistics()
ExecJob
getStatistics
in interface ExecJob
public void completionNotification(Object cookie)
ExecJob
completionNotification
in interface ExecJob
public void kill() throws ExecException
ExecJob
kill
in interface ExecJob
ExecException
public void getLogs(OutputStream log) throws ExecException
ExecJob
getLogs
in interface ExecJob
ExecException
public void getSTDOut(OutputStream out) throws ExecException
getSTDOut
in interface ExecJob
ExecException
public void getSTDError(OutputStream error) throws ExecException
getSTDError
in interface ExecJob
ExecException
public void setException(Exception e)
public Exception getException()
ExecJob
getException
in interface ExecJob
public String getAlias() throws ExecException
ExecJob
getAlias
in interface ExecJob
ExecException
public POStore getPOStore()
getPOStore
in interface ExecJob
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |