Partitioner.Create Methode

Definitie

Hiermee maakt u een partitioneerfunctie.

Overloads

Name Description
Create(Int32, Int32)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

Create(Int64, Int64)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

Create(Int32, Int32, Int32)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

Create(Int64, Int64, Int64)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

Create<TSource>(IEnumerable<TSource>)

Hiermee maakt u een bestelbare partitioner van een IEnumerable<T> exemplaar.

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

Hiermee maakt u een bestelbare partitioner van een IEnumerable<T> exemplaar.

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

Hiermee maakt u een bestelbare partitioner van een IList<T> exemplaar.

Create<TSource>(TSource[], Boolean)

Hiermee maakt u een bestelbare partitioner van een Array exemplaar.

Create(Int32, Int32)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

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))

Parameters

fromInclusive
Int32

De onderste, inclusieve grens van het bereik.

toExclusive
Int32

De bovenste, exclusieve grens van het bereik.

Retouren

Een partitioner.

Uitzonderingen

Het toExclusive argument is kleiner dan of gelijk aan het fromInclusive argument.

Opmerkingen

Zie Aangepaste partities voor PLINQ en TPL voor meer informatie en voorbeelden.

Zie ook

Van toepassing op

Create(Int64, Int64)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

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))

Parameters

fromInclusive
Int64

De onderste, inclusieve grens van het bereik.

toExclusive
Int64

De bovenste, exclusieve grens van het bereik.

Retouren

Een partitioner.

Uitzonderingen

Het toExclusive argument is kleiner dan of gelijk aan het fromInclusive argument.

Opmerkingen

Zie Aangepaste partities voor PLINQ en TPL voor meer informatie en voorbeelden.

Zie ook

Van toepassing op

Create(Int32, Int32, Int32)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

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))

Parameters

fromInclusive
Int32

De onderste, inclusieve grens van het bereik.

toExclusive
Int32

De bovenste, exclusieve grens van het bereik.

rangeSize
Int32

De grootte van elke subbereik.

Retouren

Een partitioner.

Uitzonderingen

Het toExclusive argument is kleiner dan of gelijk aan het fromInclusive argument.

– of –

Het rangeSize argument is kleiner dan of gelijk aan 0.

Opmerkingen

Zie Aangepaste partities voor PLINQ en TPL voor meer informatie en voorbeelden.

Zie ook

Van toepassing op

Create(Int64, Int64, Int64)

Hiermee maakt u een partitioneerfunctie waarmee het door de gebruiker opgegeven bereik wordt gesegmenteerd.

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))

Parameters

fromInclusive
Int64

De onderste, inclusieve grens van het bereik.

toExclusive
Int64

De bovenste, exclusieve grens van het bereik.

rangeSize
Int64

De grootte van elke subbereik.

Retouren

Een partitioner.

Uitzonderingen

Het toExclusive argument is kleiner dan of gelijk aan het fromInclusive argument.

– of –

Het rangeSize argument is kleiner dan of gelijk aan 0.

Opmerkingen

Zie Aangepaste partities voor PLINQ en TPL voor meer informatie en voorbeelden.

Zie ook

Van toepassing op

Create<TSource>(IEnumerable<TSource>)

Hiermee maakt u een bestelbare partitioner van een IEnumerable<T> exemplaar.

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)

Type parameters

TSource

Type van de elementen in bron-opsomming.

Parameters

source
IEnumerable<TSource>

De opsomming die kan worden gepartitioneerd.

Retouren

Een bestelbare partitioner op basis van de invoermatrix.

Opmerkingen

De volgorde die in de gemaakte partitioner wordt gebruikt, wordt bepaald door de natuurlijke volgorde van de elementen die zijn opgehaald uit de bron enumerable. Zie Aangepaste partities voor PLINQ en TPL voor meer informatie en voorbeelden.

Zie ook

Van toepassing op

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

Hiermee maakt u een bestelbare partitioner van een IEnumerable<T> exemplaar.

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)

Type parameters

TSource

Type van de elementen in bron-opsomming.

Parameters

source
IEnumerable<TSource>

De opsomming die kan worden gepartitioneerd.

partitionerOptions
EnumerablePartitionerOptions

Opties voor het beheren van het buffergedrag van de partitioner.

Retouren

Een bestelbare partitioner op basis van de invoermatrix.

Uitzonderingen

Het partitionerOptions argument geeft een ongeldige waarde voor EnumerablePartitionerOptions.

Opmerkingen

De volgorde die in de gemaakte partitioner wordt gebruikt, wordt bepaald door de natuurlijke volgorde van de elementen die zijn opgehaald uit de bron enumerable.

Van toepassing op

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

Hiermee maakt u een bestelbare partitioner van een IList<T> exemplaar.

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)

Type parameters

TSource

Type van de elementen in de bronlijst.

Parameters

list
IList<TSource>

De lijst die moet worden gepartitioneerd.

loadBalance
Boolean

Een Booleaanse waarde die aangeeft of de gemaakte partitie dynamisch moet worden verdeeld tussen partities in plaats van statisch te partitioneren.

Retouren

Een bestelbare partitioner op basis van de invoerlijst.

Opmerkingen

Zie Aangepaste partities voor PLINQ en TPL voor meer informatie en voorbeelden.

Zie ook

Van toepassing op

Create<TSource>(TSource[], Boolean)

Hiermee maakt u een bestelbare partitioner van een Array exemplaar.

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)

Type parameters

TSource

Type van de elementen in de bronmatrix.

Parameters

array
TSource[]

De matrix die moet worden gepartitioneerd.

loadBalance
Boolean

Een Booleaanse waarde die aangeeft of de gemaakte partitie dynamisch moet worden verdeeld tussen partities in plaats van statisch te partitioneren.

Retouren

Een bestelbare partitioner op basis van de invoermatrix.

Opmerkingen

Zie Aangepaste partities voor PLINQ en TPL voor meer informatie en voorbeelden.

Zie ook

Van toepassing op