Show / Hide Table of Contents

Class PartitionerExtensions

Provides additional methods for data partitioning in parallel algorithms.

Inheritance
object
PartitionerExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Collections.Concurrent
Assembly: DotNext.dll
Syntax
public static class PartitionerExtensions

Methods

View Source

Create<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
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾