Review Board 1.7.22


SQOOP-705 Framework-defined text/sequence partitioner/extractor for HDFS

Review Request #8285 - Created Nov. 29, 2012 and submitted

Bilung Lee
SQOOP-705
Reviewers
Sqoop
sqoop-sqoop2
Develop framework-defined partitioners/extractors that provide common functionality to extract data from text/sequence files of HDFS in uncompressed/compressed modes

 
execution/mapreduce/src/main/java/org/apache/sqoop/job/PrefixContext.java
Revision 5488b46 New Change
[20] 56 lines
[+20] [+] public int getInt(String key, int defaultValue) {
57

    
   
57

   
58
  @Override
58
  @Override
59
  public boolean getBoolean(String key, boolean defaultValue) {
59
  public boolean getBoolean(String key, boolean defaultValue) {
60
    return configuration.getBoolean(prefix + key, defaultValue);
60
    return configuration.getBoolean(prefix + key, defaultValue);
61
  }
61
  }

    
   
62

   

    
   
63
  /*

    
   
64
   * TODO: Use getter methods for retrieval instead of

    
   
65
   * exposing configuration directly.

    
   
66
   */

    
   
67
  public Configuration getConfiguration() {

    
   
68
    return configuration;

    
   
69
  }
62
}
70
}
execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsExportPartition.java
New File
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsExportPartitioner.java
New File
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsSequenceExportExtractor.java
New File
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsTextExportExtractor.java
New File
 
execution/mapreduce/src/test/java/org/apache/sqoop/job/TestHdfsExtract.java
New File
 
  1. execution/mapreduce/src/main/java/org/apache/sqoop/job/PrefixContext.java: Loading...
  2. execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsExportPartition.java: Loading...
  3. execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsExportPartitioner.java: Loading...
  4. execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsSequenceExportExtractor.java: Loading...
  5. execution/mapreduce/src/main/java/org/apache/sqoop/job/etl/HdfsTextExportExtractor.java: Loading...
  6. execution/mapreduce/src/test/java/org/apache/sqoop/job/TestHdfsExtract.java: Loading...