public class KMeansCentroidSketchHadoopReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SKETCH_WRITE_PATH
The key in the configuration that the write path for centroid sketches is
associated with
|
Constructor and Description |
---|
KMeansCentroidSketchHadoopReducer() |
Modifier and Type | Method and Description |
---|---|
void |
reduce(org.apache.hadoop.io.Text key,
java.lang.Iterable<org.apache.hadoop.io.BytesWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context) |
void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public static final java.lang.String SKETCH_WRITE_PATH
public void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException
setup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
java.io.IOException
public void reduce(org.apache.hadoop.io.Text key, java.lang.Iterable<org.apache.hadoop.io.BytesWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
java.io.IOException