Partitioner.Create Método

Definición

Crea un particionador.

Sobrecargas

Nombre Description
Create(Int32, Int32)

Crea un particionador que fragmenta el intervalo especificado por el usuario.

Create(Int64, Int64)

Crea un particionador que fragmenta el intervalo especificado por el usuario.

Create(Int32, Int32, Int32)

Crea un particionador que fragmenta el intervalo especificado por el usuario.

Create(Int64, Int64, Int64)

Crea un particionador que fragmenta el intervalo especificado por el usuario.

Create<TSource>(IEnumerable<TSource>)

Crea un particionador ordenable a partir de una IEnumerable<T> instancia de .

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

Crea un particionador ordenable a partir de una IEnumerable<T> instancia de .

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

Crea un particionador ordenable a partir de una IList<T> instancia.

Create<TSource>(TSource[], Boolean)

Crea un particionador ordenable a partir de una Array instancia de .

Create(Int32, Int32)

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador que fragmenta el intervalo especificado por el usuario.

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

Parámetros

fromInclusive
Int32

Límite inferior e inclusivo del intervalo.

toExclusive
Int32

Límite superior y exclusivo del intervalo.

Devoluciones

Particionador.

Excepciones

El toExclusive argumento es menor o igual que el fromInclusive argumento .

Comentarios

Para obtener más información y ejemplos, vea Particionadores personalizados para PLINQ y TPL.

Consulte también

Se aplica a

Create(Int64, Int64)

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador que fragmenta el intervalo especificado por el usuario.

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

Parámetros

fromInclusive
Int64

Límite inferior e inclusivo del intervalo.

toExclusive
Int64

Límite superior y exclusivo del intervalo.

Devoluciones

Particionador.

Excepciones

El toExclusive argumento es menor o igual que el fromInclusive argumento .

Comentarios

Para obtener más información y ejemplos, vea Particionadores personalizados para PLINQ y TPL.

Consulte también

Se aplica a

Create(Int32, Int32, Int32)

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador que fragmenta el intervalo especificado por el usuario.

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

Parámetros

fromInclusive
Int32

Límite inferior e inclusivo del intervalo.

toExclusive
Int32

Límite superior y exclusivo del intervalo.

rangeSize
Int32

Tamaño de cada subrango.

Devoluciones

Particionador.

Excepciones

El toExclusive argumento es menor o igual que el fromInclusive argumento .

O bien

El rangeSize argumento es menor o igual que 0.

Comentarios

Para obtener más información y ejemplos, vea Particionadores personalizados para PLINQ y TPL.

Consulte también

Se aplica a

Create(Int64, Int64, Int64)

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador que fragmenta el intervalo especificado por el usuario.

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

Parámetros

fromInclusive
Int64

Límite inferior e inclusivo del intervalo.

toExclusive
Int64

Límite superior y exclusivo del intervalo.

rangeSize
Int64

Tamaño de cada subrango.

Devoluciones

Particionador.

Excepciones

El toExclusive argumento es menor o igual que el fromInclusive argumento .

O bien

El rangeSize argumento es menor o igual que 0.

Comentarios

Para obtener más información y ejemplos, vea Particionadores personalizados para PLINQ y TPL.

Consulte también

Se aplica a

Create<TSource>(IEnumerable<TSource>)

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador ordenable a partir de una IEnumerable<T> instancia de .

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)

Parámetros de tipo

TSource

Tipo de los elementos en enumerable de origen.

Parámetros

source
IEnumerable<TSource>

Enumerable que se va a particionar.

Devoluciones

Particionador ordenable basado en la matriz de entrada.

Comentarios

El orden utilizado en el particionador creado viene determinado por el orden natural de los elementos que se recuperan de la enumerable de origen. Para obtener más información y ejemplos, vea Particionadores personalizados para PLINQ y TPL.

Consulte también

Se aplica a

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

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador ordenable a partir de una IEnumerable<T> instancia de .

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)

Parámetros de tipo

TSource

Tipo de los elementos en enumerable de origen.

Parámetros

source
IEnumerable<TSource>

Enumerable que se va a particionar.

partitionerOptions
EnumerablePartitionerOptions

Opciones para controlar el comportamiento de almacenamiento en búfer del particionador.

Devoluciones

Particionador ordenable basado en la matriz de entrada.

Excepciones

El partitionerOptions argumento especifica un valor no válido para EnumerablePartitionerOptions.

Comentarios

El orden utilizado en el particionador creado viene determinado por el orden natural de los elementos que se recuperan de la enumerable de origen.

Se aplica a

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

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador ordenable a partir de una IList<T> instancia.

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)

Parámetros de tipo

TSource

Tipo de los elementos de la lista de origen.

Parámetros

list
IList<TSource>

Lista que se va a particionar.

loadBalance
Boolean

Valor booleano que indica si el particionador creado debe equilibrar dinámicamente la carga entre particiones en lugar de crear particiones estáticamente.

Devoluciones

Un particionador ordenable basado en la lista de entrada.

Comentarios

Para obtener más información y ejemplos, vea Particionadores personalizados para PLINQ y TPL.

Consulte también

Se aplica a

Create<TSource>(TSource[], Boolean)

Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs
Source:
PartitionerStatic.cs

Crea un particionador ordenable a partir de una Array instancia de .

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)

Parámetros de tipo

TSource

Tipo de los elementos de la matriz de origen.

Parámetros

array
TSource[]

Matriz que se va a particionar.

loadBalance
Boolean

Valor booleano que indica si el particionador creado debe equilibrar dinámicamente la carga entre particiones en lugar de crear particiones estáticamente.

Devoluciones

Particionador ordenable basado en la matriz de entrada.

Comentarios

Para obtener más información y ejemplos, vea Particionadores personalizados para PLINQ y TPL.

Consulte también

Se aplica a