org.springframework.data.hadoop.pig
Class PigContextFactoryBean

java.lang.Object
  extended by org.springframework.data.hadoop.pig.PigContextFactoryBean
All Implemented Interfaces:
FactoryBean<PigContext>, InitializingBean

public class PigContextFactoryBean
extends Object
implements InitializingBean, FactoryBean<PigContext>

Factory for creating a PigContext instance. Used for detailed configuration of a PigServer instance.

Author:
Costin Leau

Constructor Summary
PigContextFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 PigContext getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setConfiguration(Configuration configuration)
          Sets the Hadoop configuration to use.
 void setExecType(ExecType execType)
          Sets the execution type.
 void setJobTracker(String jobTracker)
          Sets the job tracker.
 void setLastAlias(String lastAlias)
          Sets the last alias.
 void setProperties(Properties properties)
          Sets the configuration properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PigContextFactoryBean

public PigContextFactoryBean()
Method Detail

getObject

public PigContext getObject()
                     throws Exception
Specified by:
getObject in interface FactoryBean<PigContext>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<PigContext>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<PigContext>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setLastAlias

public void setLastAlias(String lastAlias)
Sets the last alias.

Parameters:
lastAlias - The lastAlias to set.

setJobTracker

public void setJobTracker(String jobTracker)
Sets the job tracker.

Parameters:
jobTracker - The jobTracker to set.

setExecType

public void setExecType(ExecType execType)
Sets the execution type.

Parameters:
execType - The execType to set.

setProperties

public void setProperties(Properties properties)
Sets the configuration properties.

Parameters:
properties - The properties to set.

setConfiguration

public void setConfiguration(Configuration configuration)
Sets the Hadoop configuration to use.

Parameters:
configuration - The configuration to set.