MrKWatkins.Ast Help

PipelineBuilder<TNode>.AddParallelStage Method

Overloads

Name

Description

AddParallelStage(Action<ParallelPipelineStageBuilder<TNode>>)

Adds a stage to the pipeline that runs UnorderedProcessors in parallel. Its name will be the number of the stage.

AddParallelStage(UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode> [])

Adds a stage to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.

AddParallelStage(String, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode> [])

Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.

AddParallelStage(Int32, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode> [])

Adds a stage to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism. Its name will be the number of the stage.

AddParallelStage(String, Int32, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode> [])

Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism.

AddParallelStage(Action<ParallelPipelineStageBuilder<TNode>>)

Adds a stage to the pipeline that runs UnorderedProcessors in parallel. Its name will be the number of the stage.

public PipelineBuilder<TNode> AddParallelStage(Action<ParallelPipelineStageBuilder<TNode>> build);

Parameters

Name

Type

Description

build

Action<ParallelPipelineStageBuilder<TNode>>

An action to perform on a ParallelPipelineStageBuilder<TNode> to build the pipeline.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddParallelStage(UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>[])

Adds a stage to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.

public PipelineBuilder<TNode> AddParallelStage(UnorderedProcessor<TNode> processor1, UnorderedProcessor<TNode> processor2, params UnorderedProcessor<TNode>[] others);

Parameters

Name

Type

Description

processor1

UnorderedProcessor<TNode>

The first processor to add.

processor2

UnorderedProcessor<TNode>

The second processor to add.

others

UnorderedProcessor<TNode> []

Other processors to add.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddParallelStage(String, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>[])

Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.

public PipelineBuilder<TNode> AddParallelStage(string name, UnorderedProcessor<TNode> processor1, UnorderedProcessor<TNode> processor2, params UnorderedProcessor<TNode>[] others);

Parameters

Name

Type

Description

name

String

The name of the stage.

processor1

UnorderedProcessor<TNode>

The first processor to add.

processor2

UnorderedProcessor<TNode>

The second processor to add.

others

UnorderedProcessor<TNode> []

Other processors to add.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddParallelStage(Int32, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>[])

Adds a stage to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism. Its name will be the number of the stage.

public PipelineBuilder<TNode> AddParallelStage(int maxDegreeOfParallelism, UnorderedProcessor<TNode> processor1, UnorderedProcessor<TNode> processor2, params UnorderedProcessor<TNode>[] others);

Parameters

Name

Type

Description

maxDegreeOfParallelism

Int32

The maximum degree of parallelism. If set to 1 then the stage will proceed in serial. If greater than 1 then 1 thread will be used to walk the tree and the other threads will be used to process the nodes.

processor1

UnorderedProcessor<TNode>

The first processor to add.

processor2

UnorderedProcessor<TNode>

The second processor to add.

others

UnorderedProcessor<TNode> []

Other processors to add.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddParallelStage(String, Int32, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>, UnorderedProcessor<TNode>[])

Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism.

public PipelineBuilder<TNode> AddParallelStage(string name, int maxDegreeOfParallelism, UnorderedProcessor<TNode> processor1, UnorderedProcessor<TNode> processor2, params UnorderedProcessor<TNode>[] others);

Parameters

Name

Type

Description

name

String

The name of the stage.

maxDegreeOfParallelism

Int32

The maximum degree of parallelism. If set to 1 then the stage will proceed in serial. If greater than 1 then 1 thread will be used to walk the tree and the other threads will be used to process the nodes.

processor1

UnorderedProcessor<TNode>

The first processor to add.

processor2

UnorderedProcessor<TNode>

The second processor to add.

others

UnorderedProcessor<TNode> []

Other processors to add.

Returns

PipelineBuilder<TNode>

The fluent builder.

Last modified: 09 September 2024