de.hpi.fgis.voidgen.hadoop.tasks.datasetdescription
Class ClusterSizeAdapter
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,Description>
de.hpi.fgis.voidgen.hadoop.tasks.datasetdescription.ClusterSizeAdapter
public class ClusterSizeAdapter
- extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,Description>
Adapts the output of the ClusterSizeDriver
to the VoID description input.
TODO
Input
- Key: textual cluster identifier
- Value: number of entities of this cluster
Output
- Key: textual cluster identifier
- Value: number of entities of this cluster
- Author:
- Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany
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.Text key,
org.apache.hadoop.io.IntWritable value,
org.apache.hadoop.mapreduce.Mapper.Context context)
|
Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
cleanup, run, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterSizeAdapter
public ClusterSizeAdapter()
map
public void map(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.IntWritable value,
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.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,Description>
- Throws:
java.io.IOException
java.lang.InterruptedException