Class PartitionerExtensions
Provides additional methods for data partitioning in parallel algorithms.
Inherited Members
Namespace: DotNext.Collections.Concurrent
Assembly: DotNext.dll
Syntax
public static class PartitionerExtensions
Methods
View SourceCreate<T>(ReadOnlySequence<T>, bool)
Creates partitioner for the sequence of elements.
Declaration
public static OrderablePartitioner<T> Create<T>(ReadOnlySequence<T> sequence, bool splitOnSegments = false)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySequence<T> | sequence | The sequence to split. |
| bool | splitOnSegments | true to split the sequence to the number of partitions equals to the number of the segments within the sequence; false to split the sequence dynamically to balance the workload. |
Returns
| Type | Description |
|---|---|
| OrderablePartitioner<T> | The partitioner for the sequence. |
Type Parameters
| Name | Description |
|---|---|
| T |