com.cloudera.sqoop.manager
Class ImportJobContext
java.lang.Object
com.cloudera.sqoop.manager.ImportJobContext
public class ImportJobContext
- extends java.lang.Object
A set of parameters describing an import operation; this is passed to
ConnManager.importTable() as its argument.
Constructor Summary |
ImportJobContext(java.lang.String table,
java.lang.String jar,
SqoopOptions opts,
org.apache.hadoop.fs.Path destination)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportJobContext
public ImportJobContext(java.lang.String table,
java.lang.String jar,
SqoopOptions opts,
org.apache.hadoop.fs.Path destination)
getTableName
public java.lang.String getTableName()
- Returns:
- the name of the table to import.
getJarFile
public java.lang.String getJarFile()
- Returns:
- the name of the jar file containing the user's compiled
ORM classes to use during the import.
getOptions
public SqoopOptions getOptions()
- Returns:
- the SqoopOptions configured by the user
setInputFormat
public void setInputFormat(java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat> ifClass)
- Set the InputFormat to use for the import job.
getInputFormat
public java.lang.Class<? extends org.apache.hadoop.mapreduce.InputFormat> getInputFormat()
- Returns:
- the InputFormat to use for the import job.
getDestination
public org.apache.hadoop.fs.Path getDestination()
- Returns:
- the destination path to where the output files will
be first saved.
Copyright © 2010 Cloudera, Inc.