|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.backend.local.executionengine.LocalJob
public class LocalJob
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pig.backend.executionengine.ExecJob |
---|
ExecJob.JOB_STATUS |
Field Summary | |
---|---|
protected DataBag |
results
|
protected ExecJob.JOB_STATUS |
status
|
Fields inherited from interface org.apache.pig.backend.executionengine.ExecJob |
---|
PROGRESS_KEY |
Constructor Summary | |
---|---|
LocalJob(DataBag results,
ExecJob.JOB_STATUS status)
|
Method Summary | |
---|---|
void |
completionNotification(Object cookie)
hook for asynchronous notification of job completion pushed from the back-end |
Properties |
getContiguration()
Get configuration information |
void |
getLogs(OutputStream log)
Collecting various forms of outputs |
Iterator<Tuple> |
getResults()
if query has executed successfully we want to retrieve the results via iterating over them. |
Map<String,Object> |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DataBag results
protected ExecJob.JOB_STATUS status
Constructor Detail |
---|
public LocalJob(DataBag results, ExecJob.JOB_STATUS status)
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 getContiguration()
ExecJob
getContiguration
in interface ExecJob
public Map<String,Object> 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |