com.cloudera.sqoop
Class ConnFactory
java.lang.Object
com.cloudera.sqoop.ConnFactory
public class ConnFactory
- extends java.lang.Object
Factory class to create the ConnManager type required
for the current import job.
This class delegates the actual responsibility for instantiating
ConnManagers to one or more instances of ManagerFactory. ManagerFactories
are consulted in the order specified in sqoop-site.xml
(sqoop.connection.factories).
Field Summary |
static java.lang.String |
FACTORY_CLASS_NAMES_KEY
The sqoop-site.xml configuration property used to set the list of
available ManagerFactories. |
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary |
ConnFactory(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
FACTORY_CLASS_NAMES_KEY
public static final java.lang.String FACTORY_CLASS_NAMES_KEY
- The sqoop-site.xml configuration property used to set the list of
available ManagerFactories.
- See Also:
- Constant Field Values
ConnFactory
public ConnFactory(org.apache.hadoop.conf.Configuration conf)
getManager
public ConnManager getManager(SqoopOptions opts)
throws java.io.IOException
- Factory method to get a ConnManager for the given JDBC connect string.
- Parameters:
opts
- The parsed command-line options
- Returns:
- a ConnManager instance for the appropriate database
- Throws:
java.io.IOException
- if it cannot find a ConnManager for this schema
Copyright © 2010 Cloudera, Inc.