Partitioner.Create Metod

Definition

Skapar en partitionerare.

Överlagringar

Name Description
Create(Int32, Int32)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

Create(Int64, Int64)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

Create(Int32, Int32, Int32)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

Create(Int64, Int64, Int64)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

Create<TSource>(IEnumerable<TSource>)

Skapar en ordnad partitionerare från en IEnumerable<T> instans.

Create<TSource>(IEnumerable<TSource>, EnumerablePartitionerOptions)

Skapar en ordnad partitionerare från en IEnumerable<T> instans.

Create<TSource>(IList<TSource>, Boolean)

Skapar en ordnad partitionerare från en IList<T> instans.

Create<TSource>(TSource[], Boolean)

Skapar en ordnad partitionerare från en Array instans.

Create(Int32, Int32)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

public:
 static System::Collections::Concurrent::OrderablePartitioner<Tuple<int, int> ^> ^ Create(int fromInclusive, int toExclusive);
public static System.Collections.Concurrent.OrderablePartitioner<Tuple<int,int>> Create(int fromInclusive, int toExclusive);
static member Create : int * int -> System.Collections.Concurrent.OrderablePartitioner<int * int>
Public Shared Function Create (fromInclusive As Integer, toExclusive As Integer) As OrderablePartitioner(Of Tuple(Of Integer, Integer))

Parametrar

fromInclusive
Int32

Intervallets nedre, inkluderande gräns.

toExclusive
Int32

Den övre, exklusiva gränsen för intervallet.

Returer

En partitionerare.

Undantag

Argumentet toExclusive är mindre än eller lika med fromInclusive argumentet.

Kommentarer

Mer information och exempel finns i Anpassade partitionerare för PLINQ och TPL.

Se även

Gäller för

Create(Int64, Int64)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

public:
 static System::Collections::Concurrent::OrderablePartitioner<Tuple<long, long> ^> ^ Create(long fromInclusive, long toExclusive);
public static System.Collections.Concurrent.OrderablePartitioner<Tuple<long,long>> Create(long fromInclusive, long toExclusive);
static member Create : int64 * int64 -> System.Collections.Concurrent.OrderablePartitioner<int64 * int64>
Public Shared Function Create (fromInclusive As Long, toExclusive As Long) As OrderablePartitioner(Of Tuple(Of Long, Long))

Parametrar

fromInclusive
Int64

Intervallets nedre, inkluderande gräns.

toExclusive
Int64

Den övre, exklusiva gränsen för intervallet.

Returer

En partitionerare.

Undantag

Argumentet toExclusive är mindre än eller lika med fromInclusive argumentet.

Kommentarer

Mer information och exempel finns i Anpassade partitionerare för PLINQ och TPL.

Se även

Gäller för

Create(Int32, Int32, Int32)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

public:
 static System::Collections::Concurrent::OrderablePartitioner<Tuple<int, int> ^> ^ Create(int fromInclusive, int toExclusive, int rangeSize);
public static System.Collections.Concurrent.OrderablePartitioner<Tuple<int,int>> Create(int fromInclusive, int toExclusive, int rangeSize);
static member Create : int * int * int -> System.Collections.Concurrent.OrderablePartitioner<int * int>
Public Shared Function Create (fromInclusive As Integer, toExclusive As Integer, rangeSize As Integer) As OrderablePartitioner(Of Tuple(Of Integer, Integer))

Parametrar

fromInclusive
Int32

Intervallets nedre, inkluderande gräns.

toExclusive
Int32

Den övre, exklusiva gränsen för intervallet.

rangeSize
Int32

Storleken på varje underordnad ordning.

Returer

En partitionerare.

Undantag

Argumentet toExclusive är mindre än eller lika med fromInclusive argumentet.

-eller-

Argumentet rangeSize är mindre än eller lika med 0.

Kommentarer

Mer information och exempel finns i Anpassade partitionerare för PLINQ och TPL.

Se även

Gäller för

Create(Int64, Int64, Int64)

Skapar en partitionerare som delar upp det användardefinierade intervallet.

public:
 static System::Collections::Concurrent::OrderablePartitioner<Tuple<long, long> ^> ^ Create(long fromInclusive, long toExclusive, long rangeSize);
public static System.Collections.Concurrent.OrderablePartitioner<Tuple<long,long>> Create(long fromInclusive, long toExclusive, long rangeSize);
static member Create : int64 * int64 * int64 -> System.Collections.Concurrent.OrderablePartitioner<int64 * int64>
Public Shared Function Create (fromInclusive As Long, toExclusive As Long, rangeSize As Long) As OrderablePartitioner(Of Tuple(Of Long, Long))

Parametrar

fromInclusive
Int64

Intervallets nedre, inkluderande gräns.

toExclusive
Int64

Den övre, exklusiva gränsen för intervallet.

rangeSize
Int64

Storleken på varje underordnad ordning.

Returer

En partitionerare.

Undantag

Argumentet toExclusive är mindre än eller lika med fromInclusive argumentet.

-eller-

Argumentet rangeSize är mindre än eller lika med 0.

Kommentarer

Mer information och exempel finns i Anpassade partitionerare för PLINQ och TPL.

Se även

Gäller för

Create<TSource>(IEnumerable<TSource>)

Skapar en ordnad partitionerare från en IEnumerable<T> instans.

public:
generic <typename TSource>
 static System::Collections::Concurrent::OrderablePartitioner<TSource> ^ Create(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Concurrent.OrderablePartitioner<TSource> Create<TSource>(System.Collections.Generic.IEnumerable<TSource> source);
static member Create : seq<'Source> -> System.Collections.Concurrent.OrderablePartitioner<'Source>
Public Shared Function Create(Of TSource) (source As IEnumerable(Of TSource)) As OrderablePartitioner(Of TSource)

Typparametrar

TSource

Typ av element i källuppräkningsbar.

Parametrar

source
IEnumerable<TSource>

Den uppräkningsbar som ska partitioneras.

Returer

En ordnad partitionerare baserat på indatamatrisen.

Kommentarer

Den ordning som används i den skapade partitioneraren bestäms av elementens naturliga ordning som hämtas från den uppräkningsbara källan. Mer information och exempel finns i Anpassade partitionerare för PLINQ och TPL.

Se även

Gäller för

Create<TSource>(IEnumerable<TSource>, EnumerablePartitionerOptions)

Skapar en ordnad partitionerare från en IEnumerable<T> instans.

public:
generic <typename TSource>
 static System::Collections::Concurrent::OrderablePartitioner<TSource> ^ Create(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Concurrent::EnumerablePartitionerOptions partitionerOptions);
public static System.Collections.Concurrent.OrderablePartitioner<TSource> Create<TSource>(System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Concurrent.EnumerablePartitionerOptions partitionerOptions);
static member Create : seq<'Source> * System.Collections.Concurrent.EnumerablePartitionerOptions -> System.Collections.Concurrent.OrderablePartitioner<'Source>
Public Shared Function Create(Of TSource) (source As IEnumerable(Of TSource), partitionerOptions As EnumerablePartitionerOptions) As OrderablePartitioner(Of TSource)

Typparametrar

TSource

Typ av element i källuppräkningsbar.

Parametrar

source
IEnumerable<TSource>

Den uppräkningsbar som ska partitioneras.

partitionerOptions
EnumerablePartitionerOptions

Alternativ för att styra partitionerarens buffringsbeteende.

Returer

En ordnad partitionerare baserat på indatamatrisen.

Undantag

Argumentet partitionerOptions anger ett ogiltigt värde för EnumerablePartitionerOptions.

Kommentarer

Den ordning som används i den skapade partitioneraren bestäms av elementens naturliga ordning som hämtas från den uppräkningsbara källan.

Gäller för

Create<TSource>(IList<TSource>, Boolean)

Skapar en ordnad partitionerare från en IList<T> instans.

public:
generic <typename TSource>
 static System::Collections::Concurrent::OrderablePartitioner<TSource> ^ Create(System::Collections::Generic::IList<TSource> ^ list, bool loadBalance);
public static System.Collections.Concurrent.OrderablePartitioner<TSource> Create<TSource>(System.Collections.Generic.IList<TSource> list, bool loadBalance);
static member Create : System.Collections.Generic.IList<'Source> * bool -> System.Collections.Concurrent.OrderablePartitioner<'Source>
Public Shared Function Create(Of TSource) (list As IList(Of TSource), loadBalance As Boolean) As OrderablePartitioner(Of TSource)

Typparametrar

TSource

Typ av element i källlistan.

Parametrar

list
IList<TSource>

Listan som ska partitioneras.

loadBalance
Boolean

Ett booleskt värde som anger om den skapade partitioneraren dynamiskt ska lastbalanseras mellan partitioner i stället för statisk partition.

Returer

En ordnad partitionerare baserat på indatalistan.

Kommentarer

Mer information och exempel finns i Anpassade partitionerare för PLINQ och TPL.

Se även

Gäller för

Create<TSource>(TSource[], Boolean)

Skapar en ordnad partitionerare från en Array instans.

public:
generic <typename TSource>
 static System::Collections::Concurrent::OrderablePartitioner<TSource> ^ Create(cli::array <TSource> ^ array, bool loadBalance);
public static System.Collections.Concurrent.OrderablePartitioner<TSource> Create<TSource>(TSource[] array, bool loadBalance);
static member Create : 'Source[] * bool -> System.Collections.Concurrent.OrderablePartitioner<'Source>
Public Shared Function Create(Of TSource) (array As TSource(), loadBalance As Boolean) As OrderablePartitioner(Of TSource)

Typparametrar

TSource

Typ av element i källmatrisen.

Parametrar

array
TSource[]

Matrisen som ska partitioneras.

loadBalance
Boolean

Ett booleskt värde som anger om den skapade partitioneraren dynamiskt ska lastbalanseras mellan partitioner i stället för statisk partition.

Returer

En ordnad partitionerare baserat på indatamatrisen.

Kommentarer

Mer information och exempel finns i Anpassade partitionerare för PLINQ och TPL.

Se även

Gäller för