|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.pig.PigTasklet
public class PigTasklet
Pig tasklet. Note the same PigServer
is shared between invocations.
Constructor Summary | |
---|---|
PigTasklet()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
RepeatStatus |
execute(StepContribution contribution,
ChunkContext chunkContext)
|
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 |
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 PigTasklet()
Method Detail |
---|
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception
execute
in interface Tasklet
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
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 |