@ComputableMonitor public class SumMaster extends Object implements ml.shifu.guagua.master.MasterComputable<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>
If sum value is larger than 1000000L, use HaltBytable to stop iteration.
| Constructor and Description |
|---|
SumMaster() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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)
compute in interface ml.shifu.guagua.master.MasterComputable<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>>Copyright © 2019. All Rights Reserved.