1
|
package eu.dnetlib.data.mapreduce.hbase.dedup.cc;
|
2
|
|
3
|
import java.io.IOException;
|
4
|
|
5
|
import org.apache.hadoop.io.Text;
|
6
|
import org.apache.hadoop.mapreduce.Mapper;
|
7
|
|
8
|
/**
|
9
|
* Created by claudio on 15/10/15.
|
10
|
*/
|
11
|
public class ConnectedComponentsMapper extends Mapper<Text, VertexWritable, Text, VertexWritable> {
|
12
|
|
13
|
|
14
|
@Override
|
15
|
protected void map(Text key, VertexWritable value, Context context) throws IOException, InterruptedException {
|
16
|
|
17
|
context.write(value.getVertexId(), value);
|
18
|
|
19
|
}
|
20
|
|
21
|
}
|