com.cloudera.sqoop.mapreduce
Class AutoProgressMapper<KEYIN,VALIN,KEYOUT,VALOUT>
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<KEYIN,VALIN,KEYOUT,VALOUT>
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 classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
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 |
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
AutoProgressMapper
public AutoProgressMapper()
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.