Spring for Apache Hadoop

org.springframework.data.hadoop.pig
Class PigContextFactoryBean

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

public class PigContextFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<org.apache.pig.impl.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()
           
 org.apache.pig.impl.PigContext getObject()
           
 java.lang.Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
          Sets the Hadoop configuration to use.
 void setExecType(org.apache.pig.ExecType execType)
          Sets the execution type.
 void setJobTracker(java.lang.String jobTracker)
          Sets the job tracker.
 void setLastAlias(java.lang.String lastAlias)
          Sets the last alias.
 void setProperties(java.util.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 org.apache.pig.impl.PigContext getObject()
                                         throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.pig.impl.PigContext>
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.pig.impl.PigContext>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.pig.impl.PigContext>

afterPropertiesSet

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

setLastAlias

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

Parameters:
lastAlias - The lastAlias to set.

setJobTracker

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

Parameters:
jobTracker - The jobTracker to set.

setExecType

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

Parameters:
execType - The execType to set.

setProperties

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

Parameters:
properties - The properties to set.

setConfiguration

public void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Sets the Hadoop configuration to use.

Parameters:
configuration - The configuration to set.

Spring for Apache Hadoop