|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
MASTER_RESULT - master result for computation in each iteration.WORKER_RESULT - worker result for computation in each iteration.public interface WorkerComputable<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
Worker computation interface for an application.
The absolute flexibility for customers to use with only compute(WorkerContext) function.
If you'd like to load data then computation, you can implement such logic in compute(WorkerContext) to leave
some template functions. We do it in guagua-mapreduce project.
| 方法摘要 | |
|---|---|
WORKER_RESULT |
compute(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
Computation for each iteration. |
| 方法详细信息 |
|---|
WORKER_RESULT compute(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
throws IOException
context - worker context instance which includes worker info for each iteration.
IOException - If any io exception in computation, for example, IOException in reading data.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||