com.cloudera.sqoop.util
Class AppendUtils

java.lang.Object
  extended by 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
           
 
Constructor Summary
AppendUtils(ImportJobContext context)
           
 
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
 

Field Detail

LOG

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

AppendUtils

public AppendUtils(ImportJobContext context)
Method Detail

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.