com.cloudera.sqoop.util
Class AppendUtils
java.lang.Object
com.cloudera.sqoop.util.AppendUtils
public class AppendUtils
- extends java.lang.Object
Utilities used when appending imported files to an existing dir.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Method Summary |
void |
append()
Moves the imported files from temporary directory to specified target-dir,
renaming partition number if appending file exists. |
static org.apache.hadoop.fs.Path |
getTempAppendDir(java.lang.String tableName)
Creates a unique path object inside the sqoop temporary directory. |
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
AppendUtils
public AppendUtils(ImportJobContext context)
append
public void append()
throws java.io.IOException
- Moves the imported files from temporary directory to specified target-dir,
renaming partition number if appending file exists.
- Throws:
java.io.IOException
getTempAppendDir
public static org.apache.hadoop.fs.Path getTempAppendDir(java.lang.String tableName)
- Creates a unique path object inside the sqoop temporary directory.
- Parameters:
tableName
-
- Returns:
- a path pointing to the temporary directory
Copyright © 2010 Cloudera, Inc.