|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.hive.HiveRunner
public class HiveRunner
Basic runner for Hive scripts inside a Spring environment. For more advanced functionality, consider using Spring Batch and the HiveTasklet.
To make the runner execute at startup, use setRunAtStartup(boolean).
| Constructor Summary | |
|---|---|
HiveRunner()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
List<String> |
call()
|
protected List<String> |
executeHiveScripts()
|
void |
setHiveClientFactory(HiveClientFactory hiveClientFactory)
Sets the hive client for this tasklet. |
void |
setHiveTemplate(HiveOperations hiveTemplate)
Sets the hive template. |
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<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 HiveRunner()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public List<String> call()
throws Exception
call in interface Callable<List<String>>Exceptionpublic 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<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 | ||||||||