[This is preliminary documentation and is subject to change.]
A DataSource with fixed contents, produced in the first epoch.
Inheritance Hierarchy
Microsoft.Research.Naiad.InputBaseDataSourceTRecord
Microsoft.Research.Naiad.InputConstantDataSourceTRecord
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 ConstantDataSourceTRecord type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConstantDataSourceTRecord |
Constructs a DataSource with no elements.
| |
ConstantDataSourceTRecord(IEnumerableTRecord) |
Constructs a DataSource with constant contents.
| |
ConstantDataSourceTRecord(TRecord) |
Constructs a DataSource with a single element.
|
Methods
Name | Description | |
---|---|---|
Activate |
Supplies contents to the StreamingInputs.
(Overrides BaseDataSourceTRecordActivate.) | |
Join |
Called by the Computation before it completes its own Join().
(Inherited from BaseDataSourceTRecord.) | |
RegisterInputs |
Registers StreamingInputs with the DataSource.
(Inherited from BaseDataSourceTRecord.) |
Fields
Name | Description | |
---|---|---|
inputsByWorker |
StreamingInputs corresponding to local workers.
(Inherited from BaseDataSourceTRecord.) |
See Also