com.cloudera.sqoop.mapreduce
Class TextExportMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<KEYIN,VALIN,KEYOUT,VALOUT>
com.cloudera.sqoop.mapreduce.AutoProgressMapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,SqoopRecord,org.apache.hadoop.io.NullWritable>
com.cloudera.sqoop.mapreduce.TextExportMapper
public class TextExportMapper
- extends AutoProgressMapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,SqoopRecord,org.apache.hadoop.io.NullWritable>
Converts an input record from a string representation to a parsed Sqoop
record 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,
org.apache.hadoop.io.Text val,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
|
Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
cleanup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextExportMapper
public TextExportMapper()
setup
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,SqoopRecord,org.apache.hadoop.io.NullWritable>
- Throws:
java.io.IOException
java.lang.InterruptedException
map
public void map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text 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,org.apache.hadoop.io.Text,SqoopRecord,org.apache.hadoop.io.NullWritable>
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2010 Cloudera, Inc.