Review Board 1.7.22


Sqoop-1182: Compression option for import

Review Request #13839 - Created Aug. 27, 2013 and submitted

Raghav Gautam
sqoop-1182
Reviewers
Sqoop
sqoop-sqoop2
Exposing compression options for Sqoop2
Added unit tests.
Manually tested.
core/src/main/java/org/apache/sqoop/framework/configuration/OutputCompression.java
New File

    
   
1
/**

    
   
2
 * Licensed to the Apache Software Foundation (ASF) under one

    
   
3
 * or more contributor license agreements.  See the NOTICE file

    
   
4
 * distributed with this work for additional information

    
   
5
 * regarding copyright ownership.  The ASF licenses this file

    
   
6
 * to you under the Apache License, Version 2.0 (the

    
   
7
 * "License"); you may not use this file except in compliance

    
   
8
 * with the License.  You may obtain a copy of the License at

    
   
9
 *

    
   
10
 *     http://www.apache.org/licenses/LICENSE-2.0

    
   
11
 *

    
   
12
 * Unless required by applicable law or agreed to in writing, software

    
   
13
 * distributed under the License is distributed on an "AS IS" BASIS,

    
   
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    
   
15
 * See the License for the specific language governing permissions and

    
   
16
 * limitations under the License.

    
   
17
 */

    
   
18
package org.apache.sqoop.framework.configuration;

    
   
19

   

    
   
20
/**

    
   
21
 * Supported compressions

    
   
22
 */

    
   
23
public enum OutputCompression {

    
   
24
  NONE,

    
   
25
  DEFAULT,

    
   
26
  DEFLATE,

    
   
27
  GZIP,

    
   
28
  BZIP2,

    
   
29
  LZO,

    
   
30
  LZ4,

    
   
31
  SNAPPY,

    
   
32
}
core/src/main/java/org/apache/sqoop/framework/configuration/OutputForm.java
Revision 3cb9499 New Change
 
core/src/main/resources/framework-resources.properties
Revision cebc90e New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/execution/mapreduce/MapreduceExecutionEngine.java
Revision 767080c New Change
 
execution/mapreduce/src/test/java/org/apache/sqoop/execution/mapreduce/MapreduceExecutionEngineTest.java
New File
 
  1. core/src/main/java/org/apache/sqoop/framework/configuration/OutputCompression.java: Loading...
  2. core/src/main/java/org/apache/sqoop/framework/configuration/OutputForm.java: Loading...
  3. core/src/main/resources/framework-resources.properties: Loading...
  4. execution/mapreduce/src/main/java/org/apache/sqoop/execution/mapreduce/MapreduceExecutionEngine.java: Loading...
  5. execution/mapreduce/src/test/java/org/apache/sqoop/execution/mapreduce/MapreduceExecutionEngineTest.java: Loading...