Partitioner.Create メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
パーティショナーを作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Create(Int32, Int32) |
ユーザー指定の範囲をチャンクするパーティショナーを作成します。 |
| Create(Int64, Int64) |
ユーザー指定の範囲をチャンクするパーティショナーを作成します。 |
| Create(Int32, Int32, Int32) |
ユーザー指定の範囲をチャンクするパーティショナーを作成します。 |
| Create(Int64, Int64, Int64) |
ユーザー指定の範囲をチャンクするパーティショナーを作成します。 |
| Create<TSource>(IEnumerable<TSource>) |
IEnumerable<T> インスタンスから注文可能なパーティショナーを作成します。 |
| Create<TSource>(IEnumerable<TSource>, EnumerablePartitionerOptions) |
IEnumerable<T> インスタンスから注文可能なパーティショナーを作成します。 |
| Create<TSource>(IList<TSource>, Boolean) |
IList<T> インスタンスから順序指定可能なパーティショナーを作成します。 |
| Create<TSource>(TSource[], Boolean) |
Array インスタンスから注文可能なパーティショナーを作成します。 |
Create(Int32, Int32)
ユーザー指定の範囲をチャンクするパーティショナーを作成します。
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))
パラメーター
- fromInclusive
- Int32
範囲の下限の包括境界。
- toExclusive
- Int32
範囲の上限 (排他的境界)。
返品
パーティショナー。
例外
toExclusive引数は、fromInclusive引数以下です。
注釈
詳細と例については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。
こちらもご覧ください
適用対象
Create(Int64, Int64)
ユーザー指定の範囲をチャンクするパーティショナーを作成します。
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))
パラメーター
- fromInclusive
- Int64
範囲の下限の包括境界。
- toExclusive
- Int64
範囲の上限 (排他的境界)。
返品
パーティショナー。
例外
toExclusive引数は、fromInclusive引数以下です。
注釈
詳細と例については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。
こちらもご覧ください
適用対象
Create(Int32, Int32, Int32)
ユーザー指定の範囲をチャンクするパーティショナーを作成します。
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))
パラメーター
- fromInclusive
- Int32
範囲の下限の包括境界。
- toExclusive
- Int32
範囲の上限 (排他的境界)。
- rangeSize
- Int32
各サブ範囲のサイズ。
返品
パーティショナー。
例外
注釈
詳細と例については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。
こちらもご覧ください
適用対象
Create(Int64, Int64, Int64)
ユーザー指定の範囲をチャンクするパーティショナーを作成します。
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))
パラメーター
- fromInclusive
- Int64
範囲の下限の包括境界。
- toExclusive
- Int64
範囲の上限 (排他的境界)。
- rangeSize
- Int64
各サブ範囲のサイズ。
返品
パーティショナー。
例外
注釈
詳細と例については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。
こちらもご覧ください
適用対象
Create<TSource>(IEnumerable<TSource>)
IEnumerable<T> インスタンスから注文可能なパーティショナーを作成します。
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)
型パラメーター
- TSource
ソース列挙可能な要素の型。
パラメーター
- source
- IEnumerable<TSource>
パーティション分割する列挙可能な値。
返品
入力配列に基づく順序付け可能なパーティショナー。
注釈
作成されたパーティショナーで使用される順序は、ソース列挙可能から取得される要素の自然な順序によって決まります。 詳細と例については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。
こちらもご覧ください
適用対象
Create<TSource>(IEnumerable<TSource>, EnumerablePartitionerOptions)
IEnumerable<T> インスタンスから注文可能なパーティショナーを作成します。
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)
型パラメーター
- TSource
ソース列挙可能な要素の型。
パラメーター
- source
- IEnumerable<TSource>
パーティション分割する列挙可能な値。
- partitionerOptions
- EnumerablePartitionerOptions
パーティショナーのバッファリング動作を制御するオプション。
返品
入力配列に基づく順序付け可能なパーティショナー。
例外
partitionerOptions引数は、EnumerablePartitionerOptionsの無効な値を指定します。
注釈
作成されたパーティショナーで使用される順序は、ソース列挙可能から取得される要素の自然な順序によって決まります。
適用対象
Create<TSource>(IList<TSource>, Boolean)
IList<T> インスタンスから順序指定可能なパーティショナーを作成します。
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)
型パラメーター
- TSource
ソース リスト内の要素の型。
パラメーター
- list
- IList<TSource>
パーティション分割するリスト。
- loadBalance
- Boolean
作成されたパーティショナーが静的パーティションではなくパーティション間で動的に負荷分散を行う必要があるかどうかを示すブール値。
返品
入力リストに基づく順序付け可能なパーティショナー。
注釈
詳細と例については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。
こちらもご覧ください
適用対象
Create<TSource>(TSource[], Boolean)
Array インスタンスから注文可能なパーティショナーを作成します。
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)
型パラメーター
- TSource
ソース配列内の要素の型。
パラメーター
- array
- TSource[]
パーティション分割する配列。
- loadBalance
- Boolean
作成されたパーティショナーが静的パーティションではなくパーティション間で動的に負荷分散を行う必要があるかどうかを示すブール値。
返品
入力配列に基づく順序付け可能なパーティショナー。
注釈
詳細と例については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。