[This is preliminary documentation and is subject to change.]
A DataSource with fixed contents, produced in the first epoch.
Inheritance Hierarchy
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
Name | Description | |
---|---|---|
![]() | ConstantDataSource<TRecord>() |
Constructs a DataSource with no elements.
|
![]() | ConstantDataSource<TRecord>(IEnumerable<TRecord>) |
Constructs a DataSource with constant contents.
|
![]() | ConstantDataSource<TRecord>(TRecord) |
Constructs a DataSource with a single element.
|
Methods
Name | Description | |
---|---|---|
![]() | Activate |
Supplies contents to the StreamingInputs.
(Overrides BaseDataSource<TRecord>.Activate().) |
![]() | Join |
Called by the Computation before it completes its own Join().
(Inherited from BaseDataSource<TRecord>.) |
![]() | RegisterInputs |
Registers StreamingInputs with the DataSource.
(Inherited from BaseDataSource<TRecord>.) |
Fields
Name | Description | |
---|---|---|
![]() | inputsByWorker |
StreamingInputs corresponding to local workers.
(Inherited from BaseDataSource<TRecord>.) |
See Also