Click or drag to resize

TwoStepOperation Constructor

Initializes a new instance of the TwoStepOperation class.

Namespace: Ookii.Jumbo.Jet.Jobs.Builder
Assembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public TwoStepOperation(
	JobBuilder builder,
	IOperationInput input,
	Type taskType,
	Type? secondStepTaskType,
	bool usePrePartitioning
)

Parameters

builder  JobBuilder
The job builder.
input  IOperationInput
The input for the operation.
taskType  Type
Type of the task. May be a generic type definition with a single type parameter.
secondStepTaskType  Type
The type of the task for the second step. May be a generic type definition with a single type parameter. May be to use the same type as taskType.
usePrePartitioning  Boolean
If set to the input to the first step will be partitioned when a second step is created.
Remarks

If taskType is a generic type definition with a singe type parameter, it will be constructed using the input's record type. You can use this with types such as EmptyTaskT, in which case you can specify them as typeof(EmptyTask<>) without specifying the record type.

For secondStepTaskType the same thing is done by using the output record type of the taskType.

See Also