|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.pig.PigExecutor
org.springframework.data.hadoop.pig.PigRunner
public class PigRunner
Basic runner of Pig scripts inside a Spring environment. For more advanced functionality, consider using Spring Batch and the PigTasklet.
To make the runner execute at startup, use setRunAtStartup(boolean).
| Constructor Summary | |
|---|---|
PigRunner()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
java.util.List<org.apache.pig.backend.executionengine.ExecJob> |
call()
|
void |
setPostAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
Actions to be invoked after running the action. |
void |
setPreAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
Actions to be invoked before running the action. |
void |
setRunAtStartup(boolean runAtStartup)
Indicates whether the scripts should run at container startup or not (the default). |
| Methods inherited from class org.springframework.data.hadoop.pig.PigExecutor |
|---|
executePigScripts, setPigFactory, setPigTemplate, setScripts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PigRunner()
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class PigExecutorjava.lang.Exception
public java.util.List<org.apache.pig.backend.executionengine.ExecJob> call()
throws java.lang.Exception
call in interface java.util.concurrent.Callable<java.util.List<org.apache.pig.backend.executionengine.ExecJob>>java.lang.Exceptionpublic void setRunAtStartup(boolean runAtStartup)
runAtStartup - The runAtStartup to set.public void setPreAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
actions - actionspublic void setPostAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
actions - actions
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||