Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapJobProcessor ¶
func NewMapJobProcessor ¶
func NewMapJobProcessor() *MapJobProcessor
func (*MapJobProcessor) IsRootTask ¶
func (rcvr *MapJobProcessor) IsRootTask(jobCtx *jobcontext.JobContext) bool
func (*MapJobProcessor) Kill ¶
func (rcvr *MapJobProcessor) Kill(jobCtx *jobcontext.JobContext) error
func (*MapJobProcessor) Map ¶
func (rcvr *MapJobProcessor) Map(jobCtx *jobcontext.JobContext, taskList []interface{}, taskName string) (*processor.ProcessResult, error)
Map distribute tasks to all workers. Every element in taskList shouldn't beyond 64KB.
type MapReduceJobProcessor ¶
type MapReduceJobProcessor struct {
*MapJobProcessor
}
func NewMapReduceJobProcessor ¶
func NewMapReduceJobProcessor() *MapReduceJobProcessor
func (*MapReduceJobProcessor) Reduce ¶
func (rcvr *MapReduceJobProcessor) Reduce(context *jobcontext.JobContext) (*processor.ProcessResult, error)
func (*MapReduceJobProcessor) RunReduceIfFail ¶
func (rcvr *MapReduceJobProcessor) RunReduceIfFail(context *jobcontext.JobContext) bool
Click to show internal directories.
Click to hide internal directories.