IWorkerTWorkDescription, TWorkerDescription, TOutput InterfaceNaiad Help

[This is preliminary documentation and is subject to change.]

Interface specifying the behavior of a worker vertex. A worker takes a stream of work items to perform. Before it is assigned its first work item, and after each item has been performed, the worker is asked to describe itself; the coordinator uses this description to match work items to workers. The act of performing a work item causes a sequence of output items to be generated

Namespace: Microsoft.Research.Naiad.Frameworks.WorkGenerator
Assembly: Microsoft.Research.Naiad.WorkGenerator (in Microsoft.Research.Naiad.WorkGenerator.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
public interface IWorker<TWorkDescription, TWorkerDescription, TOutput>

Type Parameters

TWorkDescription
Type describing a work item
TWorkerDescription
Type describing a worker, used to match workers to items
TOutput
Type of the output items generated by work items

The IWorkerTWorkDescription, TWorkerDescription, TOutput type exposes the following members.

Methods

  NameDescription
Public methodDescribeWorker
Return a description of the worker that the coordinator will use when matching work items to workers. This is called once before any work item has been assigned, and once after each work item is performed.
Public methodDoWork
Execute a work item, generating a sequence of output records
Top
See Also

Reference