ParallelEnumerable.GroupJoin Metoda

Definicja

Koreluje równolegle elementy dwóch sekwencji na podstawie równości kluczy i grupuje wyniki.

Przeciążenia

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>)
Przestarzałe.

To przeciążenie GroupJoin nigdy nie powinno być wywoływane. Ta metoda jest oznaczona jako przestarzała i zawsze zgłaszana NotSupportedException podczas wywołania.

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>)

Koreluje równolegle elementy dwóch sekwencji na podstawie równości kluczy i grupuje wyniki. Domyślny moduł porównujący równości służy do porównywania kluczy.

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)
Przestarzałe.

To przeciążenie GroupJoin nigdy nie powinno być wywoływane. Ta metoda jest oznaczona jako przestarzała i zawsze zgłaszana NotSupportedException podczas wywołania.

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)

Koreluje równolegle elementy dwóch sekwencji na podstawie równości klucza i grupuje wyniki. Określony IEqualityComparer<T> element służy do porównywania kluczy.

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>)

Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs

Przestroga

The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.

To przeciążenie GroupJoin nigdy nie powinno być wywoływane. Ta metoda jest oznaczona jako przestarzała i zawsze zgłaszana NotSupportedException podczas wywołania.

public:
generic <typename TOuter, typename TInner, typename TKey, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ GroupJoin(System::Linq::ParallelQuery<TOuter> ^ outer, System::Collections::Generic::IEnumerable<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, System::Collections::Generic::IEnumerable<TInner> ^, TResult> ^ resultSelector);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TResult> GroupJoin<TOuter,TInner,TKey,TResult> (this System.Linq.ParallelQuery<TOuter> outer, System.Collections.Generic.IEnumerable<TInner> inner, Func<TOuter,TKey> outerKeySelector, Func<TInner,TKey> innerKeySelector, Func<TOuter,System.Collections.Generic.IEnumerable<TInner>,TResult> resultSelector);
[<System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")>]
static member GroupJoin : System.Linq.ParallelQuery<'Outer> * seq<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, seq<'Inner>, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function GroupJoin(Of TOuter, TInner, TKey, TResult) (outer As ParallelQuery(Of TOuter), inner As IEnumerable(Of TInner), outerKeySelector As Func(Of TOuter, TKey), innerKeySelector As Func(Of TInner, TKey), resultSelector As Func(Of TOuter, IEnumerable(Of TInner), TResult)) As ParallelQuery(Of TResult)

Parametry typu

TOuter

Ten parametr typu nie jest używany.

TInner

Ten parametr typu nie jest używany.

TKey

Ten parametr typu nie jest używany.

TResult

Ten parametr typu nie jest używany.

Parametry

outer
ParallelQuery<TOuter>

Ten parametr nie jest używany.

inner
IEnumerable<TInner>

Ten parametr nie jest używany.

outerKeySelector
Func<TOuter,TKey>

Ten parametr nie jest używany.

innerKeySelector
Func<TInner,TKey>

Ten parametr nie jest używany.

resultSelector
Func<TOuter,IEnumerable<TInner>,TResult>

Ten parametr nie jest używany.

Zwraca

ParallelQuery<TResult>

To przeciążenie zawsze zgłasza błąd NotSupportedException.

Atrybuty

Wyjątki

Wyjątek, który występuje po wywołaniu tej metody.

Uwagi

To przeciążenie istnieje, aby uniemożliwić użycie elementu GroupJoin z lewym źródłem danych typu ParallelQuery<TSource> i prawym źródłem danych typu IEnumerable<T>. W przeciwnym razie operator GroupJoin wydaje się być powiązany z implementacją równoległą, ale w rzeczywistości wiąże się z implementacją sekwencyjną.

Zobacz też

Dotyczy

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>)

Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs

Koreluje równolegle elementy dwóch sekwencji na podstawie równości kluczy i grupuje wyniki. Domyślny moduł porównujący równości służy do porównywania kluczy.

public:
generic <typename TOuter, typename TInner, typename TKey, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ GroupJoin(System::Linq::ParallelQuery<TOuter> ^ outer, System::Linq::ParallelQuery<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, System::Collections::Generic::IEnumerable<TInner> ^, TResult> ^ resultSelector);
public static System.Linq.ParallelQuery<TResult> GroupJoin<TOuter,TInner,TKey,TResult> (this System.Linq.ParallelQuery<TOuter> outer, System.Linq.ParallelQuery<TInner> inner, Func<TOuter,TKey> outerKeySelector, Func<TInner,TKey> innerKeySelector, Func<TOuter,System.Collections.Generic.IEnumerable<TInner>,TResult> resultSelector);
static member GroupJoin : System.Linq.ParallelQuery<'Outer> * System.Linq.ParallelQuery<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, seq<'Inner>, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function GroupJoin(Of TOuter, TInner, TKey, TResult) (outer As ParallelQuery(Of TOuter), inner As ParallelQuery(Of TInner), outerKeySelector As Func(Of TOuter, TKey), innerKeySelector As Func(Of TInner, TKey), resultSelector As Func(Of TOuter, IEnumerable(Of TInner), TResult)) As ParallelQuery(Of TResult)

Parametry typu

TOuter

Typ elementów pierwszej sekwencji.

TInner

Typ elementów drugiej sekwencji.

TKey

Typ kluczy zwracanych przez funkcje przełącznika kluczowego.

TResult

Typ elementów wyniku.

Parametry

outer
ParallelQuery<TOuter>

Pierwsza sekwencja do przyłączenia.

inner
ParallelQuery<TInner>

Sekwencja do przyłączenia do pierwszej sekwencji.

outerKeySelector
Func<TOuter,TKey>

Funkcja wyodrębniania klucza łączenia z każdego elementu pierwszej sekwencji.

innerKeySelector
Func<TInner,TKey>

Funkcja wyodrębniania klucza łączenia z każdego elementu drugiej sekwencji.

resultSelector
Func<TOuter,IEnumerable<TInner>,TResult>

Funkcja do tworzenia elementu wyniku na podstawie elementu z pierwszej sekwencji i kolekcji pasujących elementów z drugiej sekwencji.

Zwraca

ParallelQuery<TResult>

Sekwencja zawierająca elementy typu TResult , które są uzyskiwane przez wykonanie sprzężenia zgrupowanego w dwóch sekwencjach.

Wyjątki

Zapytanie zostało anulowane przy użyciu tokenu przekazanego za pośrednictwem WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken)elementu .

sourcelub actioninnerKeySelectorouterinnerouterKeySelector lub resultSelector jest null (Nothing w Visual Basic).

Podczas oceny zapytania wystąpił co najmniej jeden wyjątek.

Zobacz też

Dotyczy

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)

Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs

Przestroga

The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.

To przeciążenie GroupJoin nigdy nie powinno być wywoływane. Ta metoda jest oznaczona jako przestarzała i zawsze zgłaszana NotSupportedException podczas wywołania.

public:
generic <typename TOuter, typename TInner, typename TKey, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ GroupJoin(System::Linq::ParallelQuery<TOuter> ^ outer, System::Collections::Generic::IEnumerable<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, System::Collections::Generic::IEnumerable<TInner> ^, TResult> ^ resultSelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TResult> GroupJoin<TOuter,TInner,TKey,TResult> (this System.Linq.ParallelQuery<TOuter> outer, System.Collections.Generic.IEnumerable<TInner> inner, Func<TOuter,TKey> outerKeySelector, Func<TInner,TKey> innerKeySelector, Func<TOuter,System.Collections.Generic.IEnumerable<TInner>,TResult> resultSelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TResult> GroupJoin<TOuter,TInner,TKey,TResult> (this System.Linq.ParallelQuery<TOuter> outer, System.Collections.Generic.IEnumerable<TInner> inner, Func<TOuter,TKey> outerKeySelector, Func<TInner,TKey> innerKeySelector, Func<TOuter,System.Collections.Generic.IEnumerable<TInner>,TResult> resultSelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
[<System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")>]
static member GroupJoin : System.Linq.ParallelQuery<'Outer> * seq<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, seq<'Inner>, 'Result> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function GroupJoin(Of TOuter, TInner, TKey, TResult) (outer As ParallelQuery(Of TOuter), inner As IEnumerable(Of TInner), outerKeySelector As Func(Of TOuter, TKey), innerKeySelector As Func(Of TInner, TKey), resultSelector As Func(Of TOuter, IEnumerable(Of TInner), TResult), comparer As IEqualityComparer(Of TKey)) As ParallelQuery(Of TResult)

Parametry typu

TOuter

Ten parametr typu nie jest używany.

TInner

Ten parametr typu nie jest używany.

TKey

Ten parametr typu nie jest używany.

TResult

Ten parametr typu nie jest używany.

Parametry

outer
ParallelQuery<TOuter>

Ten parametr nie jest używany.

inner
IEnumerable<TInner>

Ten parametr nie jest używany.

outerKeySelector
Func<TOuter,TKey>

Ten parametr nie jest używany.

innerKeySelector
Func<TInner,TKey>

Ten parametr nie jest używany.

resultSelector
Func<TOuter,IEnumerable<TInner>,TResult>

Ten parametr nie jest używany.

comparer
IEqualityComparer<TKey>

Ten parametr nie jest używany.

Zwraca

ParallelQuery<TResult>

To przeciążenie zawsze zgłasza błąd NotSupportedException.

Atrybuty

Wyjątki

Wyjątek, który występuje po wywołaniu tej metody.

Uwagi

To przeciążenie istnieje, aby uniemożliwić użycie elementu GroupJoin z lewym źródłem danych typu ParallelQuery<TSource> i prawym źródłem danych typu IEnumerable<T>. W przeciwnym razie operator GroupJoin wydaje się być powiązany z implementacją równoległą, ale w rzeczywistości wiąże się z implementacją sekwencyjną.

Zobacz też

Dotyczy

GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)

Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs
Źródło:
ParallelEnumerable.cs

Koreluje równolegle elementy dwóch sekwencji na podstawie równości klucza i grupuje wyniki. Określony IEqualityComparer<T> element służy do porównywania kluczy.

public:
generic <typename TOuter, typename TInner, typename TKey, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ GroupJoin(System::Linq::ParallelQuery<TOuter> ^ outer, System::Linq::ParallelQuery<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, System::Collections::Generic::IEnumerable<TInner> ^, TResult> ^ resultSelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Linq.ParallelQuery<TResult> GroupJoin<TOuter,TInner,TKey,TResult> (this System.Linq.ParallelQuery<TOuter> outer, System.Linq.ParallelQuery<TInner> inner, Func<TOuter,TKey> outerKeySelector, Func<TInner,TKey> innerKeySelector, Func<TOuter,System.Collections.Generic.IEnumerable<TInner>,TResult> resultSelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
public static System.Linq.ParallelQuery<TResult> GroupJoin<TOuter,TInner,TKey,TResult> (this System.Linq.ParallelQuery<TOuter> outer, System.Linq.ParallelQuery<TInner> inner, Func<TOuter,TKey> outerKeySelector, Func<TInner,TKey> innerKeySelector, Func<TOuter,System.Collections.Generic.IEnumerable<TInner>,TResult> resultSelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
static member GroupJoin : System.Linq.ParallelQuery<'Outer> * System.Linq.ParallelQuery<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, seq<'Inner>, 'Result> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function GroupJoin(Of TOuter, TInner, TKey, TResult) (outer As ParallelQuery(Of TOuter), inner As ParallelQuery(Of TInner), outerKeySelector As Func(Of TOuter, TKey), innerKeySelector As Func(Of TInner, TKey), resultSelector As Func(Of TOuter, IEnumerable(Of TInner), TResult), comparer As IEqualityComparer(Of TKey)) As ParallelQuery(Of TResult)

Parametry typu

TOuter

Typ elementów pierwszej sekwencji.

TInner

Typ elementów drugiej sekwencji.

TKey

Typ kluczy zwracanych przez funkcje przełącznika kluczowego.

TResult

Typ elementów wyniku.

Parametry

outer
ParallelQuery<TOuter>

Pierwsza sekwencja do przyłączenia.

inner
ParallelQuery<TInner>

Sekwencja do przyłączenia do pierwszej sekwencji.

outerKeySelector
Func<TOuter,TKey>

Funkcja wyodrębniania klucza łączenia z każdego elementu pierwszej sekwencji.

innerKeySelector
Func<TInner,TKey>

Funkcja wyodrębniania klucza łączenia z każdego elementu drugiej sekwencji.

resultSelector
Func<TOuter,IEnumerable<TInner>,TResult>

Funkcja do tworzenia elementu wyniku na podstawie elementu z pierwszej sekwencji i kolekcji pasujących elementów z drugiej sekwencji.

comparer
IEqualityComparer<TKey>

Element IEqualityComparer<T> do skrótu i porównaj klucze.

Zwraca

ParallelQuery<TResult>

Sekwencja zawierająca elementy typu TResult , które są uzyskiwane przez wykonanie sprzężenia zgrupowanego w dwóch sekwencjach.

Wyjątki

Zapytanie zostało anulowane przy użyciu tokenu przekazanego za pośrednictwem WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken)elementu .

sourcelub actioninnerKeySelectorouterinnerouterKeySelector lub resultSelector jest null (Nothing w Visual Basic).

Podczas oceny zapytania wystąpił co najmniej jeden wyjątek.

Zobacz też

Dotyczy