de.hpi.fgis.voidgen.hadoop.tasks.datasetdescription
Class DescriptionAggregationReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,Description,org.apache.hadoop.io.Text,Description>
      extended by 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

Output

Author:
Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
DescriptionAggregationReducer()
           
 
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
 

Constructor Detail

DescriptionAggregationReducer

public DescriptionAggregationReducer()
Method Detail

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