Struct DownstreamFactory<TOutput>
A factory that creates dataflow transforms or targets, and links their "first" input port to (if available) the output or error output port specified by the factory. See Worker Instantiation and Transform and Target Factory Methods for details.
Get the factory from Link when the upstream port is known ahead of time (which is usually the case). Otherwise get it from GetDownstreamFactory<TInput>(), and link the transform or target explicitly using LinkTo(InputPort<TOutput>) or LinkFrom(OutputPortBase<TInput>).
Note that each factory is immutable, and also does not contain any methods for creating
workers. Instead, the developer of a new transform or target worker creates
extension methods
(targeting this struct), which create and link the new worker.
Inherited Members
Namespace: actionETL
Assembly: actionETL.dll
Syntax
public readonly struct DownstreamFactory<TOutput> : IFluentInterface, IEquatable<DownstreamFactory<TOutput>> where TOutput : class
Type Parameters
| Name | Description |
|---|---|
| TOutput | The type of the rows for the "first" input of the transform or target to create. |
Properties
UpstreamPort
Gets the upstream port that the transform or target "first" input port should be linked to.
Can be null, in which case the newly created transform or target must
be linked (using LinkTo(InputPort<TOutput>) or
LinkFrom(OutputPortBase<TInput>))
to an upstream worker before it and its siblings are run.
Declaration
public readonly OutputPortBase<TOutput> UpstreamPort { get; }
Property Value
| Type | Description |
|---|---|
| OutputPortBase<TOutput> |
WorkerParent
Gets the worker that the transform or target should be added to, i.e. have as a parent.
Declaration
public readonly WorkerParent WorkerParent { get; }
Property Value
| Type | Description |
|---|---|
| WorkerParent |
Methods
Equals(DownstreamFactory<TOutput>)
Indicates whether the current object is equal to another object of the same type.
Declaration
public readonly bool Equals(DownstreamFactory<TOutput> other)
Parameters
| Type | Name | Description |
|---|---|---|
| DownstreamFactory<TOutput> | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| Boolean | true if the current object is equal to the |
Equals(Object)
Determines whether the specified Object is equal to this instance.
Declaration
public override readonly bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj | The Object to compare with this instance. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override readonly int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Operators
Equality(DownstreamFactory<TOutput>, DownstreamFactory<TOutput>)
Implements the operator ==.
Declaration
public static bool operator ==(DownstreamFactory<TOutput> left, DownstreamFactory<TOutput> right)
Parameters
| Type | Name | Description |
|---|---|---|
| DownstreamFactory<TOutput> | left | The left. |
| DownstreamFactory<TOutput> | right | The right. |
Returns
| Type | Description |
|---|---|
| Boolean | The result of the operator. |
Inequality(DownstreamFactory<TOutput>, DownstreamFactory<TOutput>)
Implements the operator !=.
Declaration
public static bool operator !=(DownstreamFactory<TOutput> left, DownstreamFactory<TOutput> right)
Parameters
| Type | Name | Description |
|---|---|---|
| DownstreamFactory<TOutput> | left | The left. |
| DownstreamFactory<TOutput> | right | The right. |
Returns
| Type | Description |
|---|---|
| Boolean | The result of the operator. |