public class ReduceValuesByTime extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
| Constructor and Description |
|---|
ReduceValuesByTime()
construct the reduce instance, do nothing
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
loadOptions(org.apache.hadoop.mapreduce.Reducer.Context context) |
void |
reduce(org.apache.hadoop.io.LongWritable timeslot,
Iterable<org.apache.hadoop.io.BytesWritable> manylines,
org.apache.hadoop.mapreduce.Reducer.Context context) |
void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public ReduceValuesByTime()
public void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionprotected static void loadOptions(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException
IOExceptionpublic void reduce(org.apache.hadoop.io.LongWritable timeslot, Iterable<org.apache.hadoop.io.BytesWritable> manylines, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>IOExceptionInterruptedException