|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.hive.HiveTasklet
public class HiveTasklet
Hive tasklet running Hive scripts on demand, against a HiveClient
.
Constructor Summary | |
---|---|
HiveTasklet()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
RepeatStatus |
execute(StepContribution contribution,
ChunkContext chunkContext)
|
protected List<String> |
executeHiveScripts()
|
void |
setHiveClientFactory(HiveClientFactory hiveClientFactory)
Sets the hive client for this tasklet. |
void |
setHiveTemplate(HiveOperations hiveTemplate)
Sets the hive template. |
void |
setScripts(Collection<HiveScript> scripts)
Sets the scripts to be executed by this tasklet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiveTasklet()
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<String> executeHiveScripts()
public void setScripts(Collection<HiveScript> scripts)
scripts
- The scripts to set.public void setHiveClientFactory(HiveClientFactory hiveClientFactory)
hiveClientFactory
- hiveFactory to setpublic void setHiveTemplate(HiveOperations hiveTemplate)
hiveTemplate
- the new hive template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |