com.cloudera.sqoop.mapreduce
Class TextImportMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<KEYIN,VALIN,KEYOUT,VALOUT>
com.cloudera.sqoop.mapreduce.AutoProgressMapper<org.apache.hadoop.io.LongWritable,SqoopRecord,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
com.cloudera.sqoop.mapreduce.TextImportMapper
public class TextImportMapper
- extends AutoProgressMapper<org.apache.hadoop.io.LongWritable,SqoopRecord,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
Imports records by transforming them to strings for a plain-text flat file.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
Method Summary |
protected void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
|
void |
map(org.apache.hadoop.io.LongWritable key,
SqoopRecord val,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextImportMapper
public TextImportMapper()
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,SqoopRecord,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
- Throws:
java.io.IOException
java.lang.InterruptedException
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,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
- Throws:
java.io.IOException
java.lang.InterruptedException
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException
- Overrides:
cleanup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,SqoopRecord,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
- Throws:
java.io.IOException
Copyright © 2010 Cloudera, Inc.