Class SumOutput

  • All Implemented Interfaces:
    ml.shifu.guagua.master.MasterInterceptor<ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>

    public class SumOutput
    extends ml.shifu.guagua.master.BasicMasterInterceptor<ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>
    SumOutput is used to write the final model output to file system.
    • Constructor Summary

      Constructors 
      Constructor Description
      SumOutput()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void postApplication​(ml.shifu.guagua.master.MasterContext<ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>> context)
      Get output file setting and write final sum value to HDFS file.
      • Methods inherited from class ml.shifu.guagua.master.BasicMasterInterceptor

        postIteration, preApplication, preIteration
    • Constructor Detail

      • SumOutput

        public SumOutput()
    • Method Detail

      • postApplication

        public void postApplication​(ml.shifu.guagua.master.MasterContext<ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>> context)
        Get output file setting and write final sum value to HDFS file.
        Specified by:
        postApplication in interface ml.shifu.guagua.master.MasterInterceptor<ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>
        Overrides:
        postApplication in class ml.shifu.guagua.master.BasicMasterInterceptor<ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>