Spring for Apache Hadoop

org.springframework.data.hadoop.hive
Class HiveExecutor

java.lang.Object
  extended by org.springframework.data.hadoop.hive.HiveExecutor
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
HiveRunner, HiveTasklet

public abstract class HiveExecutor
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean

Common class for configuring and executing Hive scripts. Shared by the Hive tasklet and runner.

Author:
Costin Leau

Constructor Summary
HiveExecutor()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  java.util.List<java.lang.String> executeHiveScripts()
           
 void setHiveClientFactory(HiveClientFactory hiveClientFactory)
          Sets the hive client for this tasklet.
 void setHiveTemplate(HiveOperations hiveTemplate)
          Sets the hive template.
 void setScripts(java.util.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

HiveExecutor

public HiveExecutor()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

executeHiveScripts

protected java.util.List<java.lang.String> executeHiveScripts()

setScripts

public void setScripts(java.util.Collection<HiveScript> scripts)
Sets the scripts to be executed by this tasklet.

Parameters:
scripts - The scripts to set.

setHiveClientFactory

public void setHiveClientFactory(HiveClientFactory hiveClientFactory)
Sets the hive client for this tasklet.

Parameters:
hiveClientFactory - hiveFactory to set

setHiveTemplate

public void setHiveTemplate(HiveOperations hiveTemplate)
Sets the hive template.

Parameters:
hiveTemplate - the new hive template

Spring for Apache Hadoop