public class DenormalizeHadoopReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUX_ITEM_STATS_SUBDIR_NAME
Default name of the subdirectory in which to store header and stats
|
static java.lang.String |
AUX_ITEM_STATS_WRITE_PATH
Full path at which to store header, item means and counts for later use
|
static java.lang.String |
DENORMALIZED_HEADER_FILE_NAME
Name of the file to output the denormalized header to * public static final
|
static java.lang.String |
ITEM_COUNTS_FILE_NAME
The name of the file to output the serialized array of item counts to
|
static java.lang.String |
ITEM_MEANS_FILE_NAME
The name of the file to output the serialized array of item means to
|
| Constructor and Description |
|---|
DenormalizeHadoopReducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(org.apache.hadoop.mapreduce.Reducer.Context context) |
void |
reduce(org.apache.hadoop.io.LongWritable key,
java.lang.Iterable<org.apache.hadoop.io.Text> values,
org.apache.hadoop.mapreduce.Reducer.Context context) |
void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public static final java.lang.String AUX_ITEM_STATS_SUBDIR_NAME
public static final java.lang.String AUX_ITEM_STATS_WRITE_PATH
public static final java.lang.String DENORMALIZED_HEADER_FILE_NAME
public static final java.lang.String ITEM_COUNTS_FILE_NAME
public static final java.lang.String ITEM_MEANS_FILE_NAME
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.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>java.io.IOExceptionpublic void reduce(org.apache.hadoop.io.LongWritable key,
java.lang.Iterable<org.apache.hadoop.io.Text> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>java.io.IOExceptionpublic void cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException
cleanup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>java.io.IOException