ConstantDataSource<TRecord> ClassNaiad Help

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

A DataSource with fixed contents, produced in the first epoch.
Inheritance Hierarchy

System.Object
  Microsoft.Research.Naiad.Input.BaseDataSource<TRecord>
    Microsoft.Research.Naiad.Input.ConstantDataSource<TRecord>

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

C#
public class ConstantDataSource<TRecord> : BaseDataSource<TRecord>

Type Parameters

TRecord
record type

The ConstantDataSource<TRecord> type exposes the following members.

Constructors

  NameDescription
Public methodConstantDataSource<TRecord>()
Constructs a DataSource with no elements.
Public methodConstantDataSource<TRecord>(IEnumerable<TRecord>)
Constructs a DataSource with constant contents.
Public methodConstantDataSource<TRecord>(TRecord)
Constructs a DataSource with a single element.
Top
Methods

  NameDescription
Public methodActivate
Supplies contents to the StreamingInputs.
(Overrides BaseDataSource<TRecord>.Activate().)
Public methodJoin
Called by the Computation before it completes its own Join().
(Inherited from BaseDataSource<TRecord>.)
Public methodRegisterInputs
Registers StreamingInputs with the DataSource.
(Inherited from BaseDataSource<TRecord>.)
Top
Fields

  NameDescription
Protected fieldinputsByWorker
StreamingInputs corresponding to local workers.
(Inherited from BaseDataSource<TRecord>.)
Top
See Also

Reference