ParallelEnumerable.AsParallel 메서드

정의

쿼리를 병렬화할 수 있도록 합니다.

오버로드

AsParallel(IEnumerable)

쿼리를 병렬화할 수 있도록 합니다.

AsParallel<TSource>(Partitioner<TSource>)

입력 시퀀스를 파티션으로 분할해야 하는 사용자 지정 파티셔너에 의해 발생한 쿼리를 병렬화할 수 있도록 합니다.

AsParallel<TSource>(IEnumerable<TSource>)

쿼리를 병렬화할 수 있도록 합니다.

설명

이 메서드는 쿼리를 PLINQ에 바인딩합니다. 자세한 내용은 PLINQ(병렬 LINQ)를 참조하세요.

AsParallel(IEnumerable)

쿼리를 병렬화할 수 있도록 합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery ^ AsParallel(System::Collections::IEnumerable ^ source);
public static System.Linq.ParallelQuery AsParallel (this System.Collections.IEnumerable source);
static member AsParallel : System.Collections.IEnumerable -> System.Linq.ParallelQuery
<Extension()>
Public Function AsParallel (source As IEnumerable) As ParallelQuery

매개 변수

source
IEnumerable

IEnumerable<T>로 변환할 ParallelQuery입니다.

반환

ParallelEnumerable 확장명 메서드에 바인딩할 소스 ParallelQuery입니다.

예외

source가 null 참조(Visual Basic의 경우 Nothing)인 경우

설명

연산자를 Cast 사용하여 ParallelQuery를 ParallelQuery(T)로 변환할 수 있습니다.

추가 정보

적용 대상

AsParallel<TSource>(Partitioner<TSource>)

입력 시퀀스를 파티션으로 분할해야 하는 사용자 지정 파티셔너에 의해 발생한 쿼리를 병렬화할 수 있도록 합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ AsParallel(System::Collections::Concurrent::Partitioner<TSource> ^ source);
public static System.Linq.ParallelQuery<TSource> AsParallel<TSource> (this System.Collections.Concurrent.Partitioner<TSource> source);
static member AsParallel : System.Collections.Concurrent.Partitioner<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function AsParallel(Of TSource) (source As Partitioner(Of TSource)) As ParallelQuery(Of TSource)

형식 매개 변수

TSource

source의 요소 형식입니다.

매개 변수

source
Partitioner<TSource>

입력 시퀀스에 대한 파티셔너입니다.

반환

ParallelEnumerable 확장 메서드에 바인딩할 source ParallelQuery입니다.

예외

source가 null 참조(Visual Basic의 경우 Nothing)인 경우

설명

원본 파티셔너의 GetOrderedPartitions 메서드는 순서 지정을 사용하도록 설정할 때 사용되는 반면, 순서 지정이 활성화되지 않은 경우 파티셔너의 GetPartitions가 사용됩니다(기본값). 원본 파티셔너의 GetDynamicPartitions 및 GetDynamicOrderedPartitions는 사용되지 않습니다. 자세한 내용 및 예제는 PLINQ 및 TPL용 사용자 지정 파티셔너를 참조하세요.

추가 정보

적용 대상

AsParallel<TSource>(IEnumerable<TSource>)

쿼리를 병렬화할 수 있도록 합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ AsParallel(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Linq.ParallelQuery<TSource> AsParallel<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member AsParallel : seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function AsParallel(Of TSource) (source As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)

형식 매개 변수

TSource

source의 요소 형식입니다.

매개 변수

source
IEnumerable<TSource>

IEnumerable<T>로 변환할 ParallelQuery<TSource>입니다.

반환

ParallelEnumerable 확장 메서드에 바인딩할 소스 ParallelQuery<TSource>입니다.

예외

source가 null 참조(Visual Basic의 경우 Nothing)인 경우

추가 정보

적용 대상