Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer

        org.apache.hadoop.mapreduce.Reducer.Context
    • Constructor Summary

      Constructors 
      Constructor Description
      TSReducer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)  
      • Methods inherited from class org.apache.hadoop.mapreduce.Reducer

        cleanup, run, setup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TSReducer

        public TSReducer()
    • 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:
        reduce in class 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>
        Throws:
        java.io.IOException
        java.lang.InterruptedException