ParallelEnumerable.GroupJoin Método

Definição

Correlaciona em paralelo os elementos de duas sequências com base na igualdade de chaves e agrupa os resultados.Correlates in parallel the elements of two sequences based on equality of keys and groups the results.

Sobrecargas

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

Essa sobrecarga GroupJoin nunca deve ser chamada.This GroupJoin overload should never be called. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.This method is marked as obsolete and always throws NotSupportedException when called.

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

Correlaciona em paralelo os elementos de duas sequências com base na igualdade de chaves e agrupa os resultados.Correlates in parallel the elements of two sequences based on equality of keys and groups the results. O comparador de igualdade padrão é usado para comparar chaves.The default equality comparer is used to compare keys.

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

Essa sobrecarga GroupJoin nunca deve ser chamada.This GroupJoin overload should never be called. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.This method is marked as obsolete and always throws NotSupportedException when called.

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

Correlaciona em paralelo os elementos de duas sequências com base na igualdade de chaves e agrupa os resultados.Correlates in parallel the elements of two sequences based on key equality and groups the results. Um IEqualityComparer<T> especificado é usado para comparar chaves.A specified IEqualityComparer<T> is used to compare keys.

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

Cuidado

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

Essa sobrecarga GroupJoin nunca deve ser chamada.This GroupJoin overload should never be called. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.This method is marked as obsolete and always throws NotSupportedException when called.

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)

Parâmetros de tipo

TOuter

Esse parâmetro de tipo não é usado.This type parameter is not used.

TInner

Esse parâmetro de tipo não é usado.This type parameter is not used.

TKey

Esse parâmetro de tipo não é usado.This type parameter is not used.

TResult

Esse parâmetro de tipo não é usado.This type parameter is not used.

Parâmetros

outer
ParallelQuery<TOuter>

Este parâmetro não é usado.This parameter is not used.

inner
IEnumerable<TInner>

Este parâmetro não é usado.This parameter is not used.

outerKeySelector
Func<TOuter,TKey>

Este parâmetro não é usado.This parameter is not used.

innerKeySelector
Func<TInner,TKey>

Este parâmetro não é usado.This parameter is not used.

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

Este parâmetro não é usado.This parameter is not used.

Retornos

ParallelQuery<TResult>

Essa sobrecarga sempre gera um NotSupportedException.This overload always throws a NotSupportedException.

Atributos

Exceções

A exceção que ocorre quando esse método é chamado.The exception that occurs when this method is called.

Comentários

Essa sobrecarga existe para não permitir o uso de GroupJoin com uma fonte de dados esquerda do tipo ParallelQuery<TSource> e uma fonte de dados correta do tipo IEnumerable<T> .This overload exists to disallow usage of GroupJoin with a left data source of type ParallelQuery<TSource> and a right data source of type IEnumerable<T>. Caso contrário, o operador GroupJoin pareceria estar ligando à implementação paralela, mas, na realidade, seria associado à implementação Sequencial.Otherwise, the GroupJoin operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.

Aplica-se a

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

Correlaciona em paralelo os elementos de duas sequências com base na igualdade de chaves e agrupa os resultados.Correlates in parallel the elements of two sequences based on equality of keys and groups the results. O comparador de igualdade padrão é usado para comparar chaves.The default equality comparer is used to compare keys.

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)

Parâmetros de tipo

TOuter

O tipo dos elementos da primeira sequência.The type of the elements of the first sequence.

TInner

O tipo dos elementos da segunda sequência.The type of the elements of the second sequence.

TKey

O tipo das chaves retornadas pelas funções de seletor de chave.The type of the keys returned by the key selector functions.

TResult

O tipo dos elementos de resultado.The type of the result elements.

Parâmetros

outer
ParallelQuery<TOuter>

A primeira sequência a ser ingressada.The first sequence to join.

inner
ParallelQuery<TInner>

A sequência a ser ingressada à primeira sequência.The sequence to join to the first sequence.

outerKeySelector
Func<TOuter,TKey>

Uma função para extrair a chave de junção de cada elemento da primeira sequência.A function to extract the join key from each element of the first sequence.

innerKeySelector
Func<TInner,TKey>

Uma função para extrair a chave de junção de cada elemento da segunda sequência.A function to extract the join key from each element of the second sequence.

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

Uma função para criar um elemento de resultado de um elemento da primeira sequência e uma coleção de elementos correspondentes da segunda sequência.A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.

Retornos

ParallelQuery<TResult>

Uma sequência que tem elementos do tipo TResult que são obtidos executando uma junção agrupada em duas sequências.A sequence that has elements of type TResult that are obtained by performing a grouped join on two sequences.

Exceções

A consulta foi cancelada com o token transmitido pelo WithCancellation.The query was canceled with the token passed in through WithCancellation.

source ou action ou outer ou inner ou outerKeySelector, ou innerKeySelector,ou resultSelector é null (Nothing em Visual Basic).source or action or outer or inner or outerKeySelector or innerKeySelector or resultSelector is null (Nothing in Visual Basic).

Uma ou mais exceções ocorreram durante a avaliação da consulta.One or more exceptions occurred during the evaluation of the query.

Aplica-se a

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

Cuidado

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

Essa sobrecarga GroupJoin nunca deve ser chamada.This GroupJoin overload should never be called. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.This method is marked as obsolete and always throws NotSupportedException when called.

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)

Parâmetros de tipo

TOuter

Esse parâmetro de tipo não é usado.This type parameter is not used.

TInner

Esse parâmetro de tipo não é usado.This type parameter is not used.

TKey

Esse parâmetro de tipo não é usado.This type parameter is not used.

TResult

Esse parâmetro de tipo não é usado.This type parameter is not used.

Parâmetros

outer
ParallelQuery<TOuter>

Este parâmetro não é usado.This parameter is not used.

inner
IEnumerable<TInner>

Este parâmetro não é usado.This parameter is not used.

outerKeySelector
Func<TOuter,TKey>

Este parâmetro não é usado.This parameter is not used.

innerKeySelector
Func<TInner,TKey>

Este parâmetro não é usado.This parameter is not used.

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

Este parâmetro não é usado.This parameter is not used.

comparer
IEqualityComparer<TKey>

Este parâmetro não é usado.This parameter is not used.

Retornos

ParallelQuery<TResult>

Essa sobrecarga sempre gera um NotSupportedException.This overload always throws a NotSupportedException.

Atributos

Exceções

A exceção que ocorre quando esse método é chamado.The exception that occurs when this method is called.

Comentários

Essa sobrecarga existe para não permitir o uso de GroupJoin com uma fonte de dados esquerda do tipo ParallelQuery<TSource> e uma fonte de dados correta do tipo IEnumerable<T> .This overload exists to disallow usage of GroupJoin with a left data source of type ParallelQuery<TSource> and a right data source of type IEnumerable<T>. Caso contrário, o operador GroupJoin pareceria estar ligando à implementação paralela, mas, na realidade, seria associado à implementação Sequencial.Otherwise, the GroupJoin operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.

Aplica-se a

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

Correlaciona em paralelo os elementos de duas sequências com base na igualdade de chaves e agrupa os resultados.Correlates in parallel the elements of two sequences based on key equality and groups the results. Um IEqualityComparer<T> especificado é usado para comparar chaves.A specified IEqualityComparer<T> is used to compare keys.

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)

Parâmetros de tipo

TOuter

O tipo dos elementos da primeira sequência.The type of the elements of the first sequence.

TInner

O tipo dos elementos da segunda sequência.The type of the elements of the second sequence.

TKey

O tipo das chaves retornadas pelas funções de seletor de chave.The type of the keys returned by the key selector functions.

TResult

O tipo dos elementos de resultado.The type of the result elements.

Parâmetros

outer
ParallelQuery<TOuter>

A primeira sequência a ser ingressada.The first sequence to join.

inner
ParallelQuery<TInner>

A sequência a ser ingressada à primeira sequência.The sequence to join to the first sequence.

outerKeySelector
Func<TOuter,TKey>

Uma função para extrair a chave de junção de cada elemento da primeira sequência.A function to extract the join key from each element of the first sequence.

innerKeySelector
Func<TInner,TKey>

Uma função para extrair a chave de junção de cada elemento da segunda sequência.A function to extract the join key from each element of the second sequence.

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

Uma função para criar um elemento de resultado de um elemento da primeira sequência e uma coleção de elementos correspondentes da segunda sequência.A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.

comparer
IEqualityComparer<TKey>

Um IEqualityComparer<T> para executar hash e comparar chaves.An IEqualityComparer<T> to hash and compare keys.

Retornos

ParallelQuery<TResult>

Uma sequência que tem elementos do tipo TResult que são obtidos executando uma junção agrupada em duas sequências.A sequence that has elements of type TResult that are obtained by performing a grouped join on two sequences.

Exceções

A consulta foi cancelada com o token transmitido pelo WithCancellation.The query was canceled with the token passed in through WithCancellation.

source ou action ou outer ou inner ou outerKeySelector, ou innerKeySelector,ou resultSelector é null (Nothing em Visual Basic).source or action or outer or inner or outerKeySelector or innerKeySelector or resultSelector is null (Nothing in Visual Basic).

Uma ou mais exceções ocorreram durante a avaliação da consulta.One or more exceptions occurred during the evaluation of the query.

Aplica-se a