de.hpi.fgis.voidgen.hadoop.tasks.datasetdescription
Class DescriptionAggregationReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,Description,org.apache.hadoop.io.Text,Description>
de.hpi.fgis.voidgen.hadoop.tasks.datasetdescription.DescriptionAggregationReducer
public class DescriptionAggregationReducer
- extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,Description,org.apache.hadoop.io.Text,Description>
Collects all descriptions of a cluster and
aggregates them to a single description per
cluster.
Adds configurable entries (specified by the
user) to each description
(e.g. clustering type and clustering predicate).
Input
- Key: textual cluster identifier
- Value: cluster description
Output
- Key: textual cluster identifier
- Value: aggregated cluster description
- Author:
- Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
Method Summary |
void |
reduce(org.apache.hadoop.io.Text key,
java.lang.Iterable<Description> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
|
void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context)
|
Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
cleanup, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DescriptionAggregationReducer
public DescriptionAggregationReducer()
setup
public void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,Description,org.apache.hadoop.io.Text,Description>
reduce
public void reduce(org.apache.hadoop.io.Text key,
java.lang.Iterable<Description> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,Description,org.apache.hadoop.io.Text,Description>
- Throws:
java.io.IOException
java.lang.InterruptedException