com.cloudera.sqoop.mapreduce
Class AutoProgressMapper<KEYIN,VALIN,KEYOUT,VALOUT>

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<KEYIN,VALIN,KEYOUT,VALOUT>
      extended by com.cloudera.sqoop.mapreduce.AutoProgressMapper<KEYIN,VALIN,KEYOUT,VALOUT>
Direct Known Subclasses:
SequenceFileExportMapper, SequenceFileImportMapper, TextExportMapper, TextImportMapper

public class AutoProgressMapper<KEYIN,VALIN,KEYOUT,VALOUT>
extends org.apache.hadoop.mapreduce.Mapper<KEYIN,VALIN,KEYOUT,VALOUT>

Identity mapper that continuously reports progress via a background thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
 
Field Summary
static org.apache.commons.logging.Log LOG
           
static java.lang.String MAX_PROGRESS_PERIOD_KEY
           
static java.lang.String REPORT_INTERVAL_KEY
           
static java.lang.String SLEEP_INTERVAL_KEY
           
 
Constructor Summary
AutoProgressMapper()
           
 
Method Summary
 void run(org.apache.hadoop.mapreduce.Mapper.Context context)
          Run the mapping process for this task, wrapped in an auto-progress system.
 
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, map, setup
 
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

MAX_PROGRESS_PERIOD_KEY

public static final java.lang.String MAX_PROGRESS_PERIOD_KEY
See Also:
Constant Field Values

SLEEP_INTERVAL_KEY

public static final java.lang.String SLEEP_INTERVAL_KEY
See Also:
Constant Field Values

REPORT_INTERVAL_KEY

public static final java.lang.String REPORT_INTERVAL_KEY
See Also:
Constant Field Values
Constructor Detail

AutoProgressMapper

public AutoProgressMapper()
Method Detail

run

public void run(org.apache.hadoop.mapreduce.Mapper.Context context)
         throws java.io.IOException,
                java.lang.InterruptedException
Run the mapping process for this task, wrapped in an auto-progress system.

Overrides:
run in class org.apache.hadoop.mapreduce.Mapper<KEYIN,VALIN,KEYOUT,VALOUT>
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2010 Cloudera, Inc.