ml.shifu.guagua.yarn.example.sum
类 SumMaster
java.lang.Object
ml.shifu.guagua.yarn.example.sum.SumMaster
- 所有已实现的接口:
- ml.shifu.guagua.master.MasterComputable<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>
public class SumMaster
- extends Object
- implements ml.shifu.guagua.master.MasterComputable<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>
Sum all workers' results together.
If sum value is larger than 1000000L, use HaltBytable to stop iteration.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SumMaster
public SumMaster()
compute
public GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable> compute(ml.shifu.guagua.master.MasterContext<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>> context)
- 指定者:
- 接口
ml.shifu.guagua.master.MasterComputable<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>> 中的 compute
Copyright © 2014. All Rights Reserved.