Redigera

Dela via


OrderablePartitioner<TSource>.GetOrderablePartitions(Int32) Method

Definition

Partitions the underlying collection into the specified number of orderable partitions.

public:
 abstract System::Collections::Generic::IList<System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<long, TSource>> ^> ^ GetOrderablePartitions(int partitionCount);
public abstract System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<long,TSource>>> GetOrderablePartitions (int partitionCount);
abstract member GetOrderablePartitions : int -> System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<int64, 'Source>>>
Public MustOverride Function GetOrderablePartitions (partitionCount As Integer) As IList(Of IEnumerator(Of KeyValuePair(Of Long, TSource)))

Parameters

partitionCount
Int32

The number of partitions to create.

Returns

A list containing partitionCount enumerators.

Remarks

Each partition is represented as an enumerator over key-value pairs.

The value of the pair is the element itself, and the key is an integer which determines the relative ordering of this element against other elements in the data source.

For more information, see Custom Partitioners for PLINQ and TPL.

Applies to

See also