com.cloudera.sqoop.mapreduce
Class SequenceFileExportMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<KEYIN,VALIN,KEYOUT,VALOUT>
com.cloudera.sqoop.mapreduce.AutoProgressMapper<org.apache.hadoop.io.LongWritable,SqoopRecord,SqoopRecord,org.apache.hadoop.io.NullWritable>
com.cloudera.sqoop.mapreduce.SequenceFileExportMapper
public class SequenceFileExportMapper
- extends AutoProgressMapper<org.apache.hadoop.io.LongWritable,SqoopRecord,SqoopRecord,org.apache.hadoop.io.NullWritable>
Reads a SqoopRecord from the SequenceFile in which it's packed and emits
that DBWritable to the OutputFormat for writeback to the database.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
Method Summary |
void |
map(org.apache.hadoop.io.LongWritable key,
SqoopRecord val,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
cleanup, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileExportMapper
public SequenceFileExportMapper()
map
public void map(org.apache.hadoop.io.LongWritable key,
SqoopRecord val,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,SqoopRecord,SqoopRecord,org.apache.hadoop.io.NullWritable>
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2010 Cloudera, Inc.