com.cloudera.sqoop.manager
Class DirectPostgresqlManager

java.lang.Object
  extended by com.cloudera.sqoop.manager.ConnManager
      extended by com.cloudera.sqoop.manager.SqlManager
          extended by com.cloudera.sqoop.manager.GenericJdbcManager
              extended by com.cloudera.sqoop.manager.PostgresqlManager
                  extended by com.cloudera.sqoop.manager.DirectPostgresqlManager

public class DirectPostgresqlManager
extends PostgresqlManager

Manages direct dumps from Postgresql databases via psql COPY TO STDOUT commands.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class com.cloudera.sqoop.manager.SqlManager
options
 
Constructor Summary
DirectPostgresqlManager(SqoopOptions opts)
           
 
Method Summary
 void importTable(ImportJobContext context)
          Default implementation of importTable() is to launch a MapReduce job via DataDrivenImportJob to read the table with DataDrivenDBInputFormat.
 
Methods inherited from class com.cloudera.sqoop.manager.PostgresqlManager
close, execute, getColNamesQuery, getPrimaryKey, release
 
Methods inherited from class com.cloudera.sqoop.manager.GenericJdbcManager
discardConnection, getConnection, getDriverClass, hasOpenConnection
 
Methods inherited from class com.cloudera.sqoop.manager.SqlManager
execAndPrint, exportTable, formatAndPrintResultSet, getColTypesQuery, getColumnNames, getColumnTypes, getSplitColumn, listDatabases, listTables, makeConnection, readTable, toHiveType, toJavaType
 
Methods inherited from class com.cloudera.sqoop.manager.ConnManager
escapeColName, escapeTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

DirectPostgresqlManager

public DirectPostgresqlManager(SqoopOptions opts)
Method Detail

importTable

public void importTable(ImportJobContext context)
                 throws java.io.IOException,
                        ImportException
Description copied from class: SqlManager
Default implementation of importTable() is to launch a MapReduce job via DataDrivenImportJob to read the table with DataDrivenDBInputFormat.

Overrides:
importTable in class PostgresqlManager
Throws:
java.io.IOException
ImportException


Copyright © 2010 Cloudera, Inc.