|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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
.
setRunAtStartup(boolean)
.
Constructor Summary | |
---|---|
PigRunner()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
List<ExecJob> |
call()
|
protected List<ExecJob> |
executePigScripts()
|
void |
setPigFactory(PigServerFactory pigFactory)
Sets the pig server instance used by this class. |
void |
setPigTemplate(PigOperations pigTemplate)
Sets the pig template used by this class. |
void |
setPostAction(Collection<Callable<?>> actions)
Actions to be invoked after running the action. |
void |
setPreAction(Collection<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). |
void |
setScripts(Collection<PigScript> scripts)
Sets the pig scripts to be executed by this class. |
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 Exception
afterPropertiesSet
in interface InitializingBean
Exception
public List<ExecJob> call() throws Exception
call
in interface Callable<List<ExecJob>>
Exception
public void setRunAtStartup(boolean runAtStartup)
runAtStartup
- The runAtStartup to set.public void setPreAction(Collection<Callable<?>> actions)
actions
- public void setPostAction(Collection<Callable<?>> actions)
actions
- protected List<ExecJob> executePigScripts()
public void setScripts(Collection<PigScript> scripts)
scripts
- The scripts to set.public void setPigFactory(PigServerFactory pigFactory)
pigFactory
- The pigFactory to set.public void setPigTemplate(PigOperations pigTemplate)
pigTemplate
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |