Package org.apache.iotdb.hadoop.tsfile
Class TSMRWriteExample.TSReducer
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable,org.apache.hadoop.io.NullWritable,org.apache.iotdb.hadoop.tsfile.record.HDFSTSRecord>
-
- org.apache.iotdb.hadoop.tsfile.TSMRWriteExample.TSReducer
-
- Enclosing class:
- TSMRWriteExample
public static class TSMRWriteExample.TSReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable,org.apache.hadoop.io.NullWritable,org.apache.iotdb.hadoop.tsfile.record.HDFSTSRecord>This reducer calculate the average value.
-
-
Constructor Summary
Constructors Constructor Description TSReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidreduce(org.apache.hadoop.io.Text key, java.lang.Iterable<org.apache.hadoop.io.MapWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context)
-
-
-
Method Detail
-
reduce
protected void reduce(org.apache.hadoop.io.Text key, java.lang.Iterable<org.apache.hadoop.io.MapWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException- Overrides:
reducein classorg.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable,org.apache.hadoop.io.NullWritable,org.apache.iotdb.hadoop.tsfile.record.HDFSTSRecord>- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-