ParallelEnumerable.GroupJoin Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Correlaciona em paralelo os elementos de duas sequências com base na igualdade das chaves e agrupa os resultados.
Sobrecargas
GroupJoin<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>, TResult>)
Atenção
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>.
Esta sobrecarga de GroupJoin nunca deve ser apelidada. Este método é marcado como obsoleto e é sempre lançado NotSupportedException quando chamado.
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 Genérico
- TOuter
Este parâmetro de tipo não é utilizado.
- TInner
Este parâmetro de tipo não é utilizado.
- TKey
Este parâmetro de tipo não é utilizado.
- TResult
Este parâmetro de tipo não é utilizado.
Parâmetros
- outer
- ParallelQuery<TOuter>
Este parâmetro não é utilizado.
- inner
- IEnumerable<TInner>
Este parâmetro não é utilizado.
- outerKeySelector
- Func<TOuter,TKey>
Este parâmetro não é utilizado.
- innerKeySelector
- Func<TInner,TKey>
Este parâmetro não é utilizado.
- resultSelector
- Func<TOuter,IEnumerable<TInner>,TResult>
Este parâmetro não é utilizado.
Devoluções
Esta sobrecarga gera sempre um NotSupportedException.
- Atributos
Exceções
A exceção que ocorre quando este método é chamado.
Observações
Esta sobrecarga existe para impedir o uso do GroupJoin com uma fonte de dados à esquerda do tipo ParallelQuery<TSource> e uma fonte de dados à direita do tipo IEnumerable<T>. Caso contrário, o operador GroupJoin pareceria estar vinculado à implementação paralela, mas na realidade ligaria à implementação sequencial.
Ver também
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 das chaves e agrupa os resultados. O comparador de igualdade por defeito é usado para comparar chaves.
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 Genérico
- TOuter
O tipo dos elementos da primeira sequência.
- TInner
O tipo dos elementos da segunda sequência.
- TKey
O tipo das teclas devolvidas pelas funções seletoras de teclas.
- TResult
O tipo dos elementos resultantes.
Parâmetros
- outer
- ParallelQuery<TOuter>
A primeira sequência a juntar-se.
- inner
- ParallelQuery<TInner>
A sequência a juntar à primeira sequência.
- outerKeySelector
- Func<TOuter,TKey>
Uma função para extrair a chave de junção de cada elemento da primeira sequência.
- innerKeySelector
- Func<TInner,TKey>
Uma função para extrair a chave de junção de cada elemento da segunda sequência.
- resultSelector
- Func<TOuter,IEnumerable<TInner>,TResult>
Uma função para criar um elemento resultante a partir de um elemento da primeira sequência e uma coleção de elementos correspondentes da segunda sequência.
Devoluções
Uma sequência que tem elementos do tipo TResult obtidos ao realizar uma junção agrupada em duas sequências.
Exceções
A consulta foi cancelada com o token passado por WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).
outer ou inner ou outerKeySelector ou innerKeySelector ou resultSelector é null (Nothing em Visual Basic).
Uma ou mais exceções ocorreram durante a avaliação da consulta.
Ver também
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>)
Atenção
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>.
Esta sobrecarga de GroupJoin nunca deve ser apelidada. Este método é marcado como obsoleto e é sempre lançado NotSupportedException quando chamado.
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>.")>]
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 Genérico
- TOuter
Este parâmetro de tipo não é utilizado.
- TInner
Este parâmetro de tipo não é utilizado.
- TKey
Este parâmetro de tipo não é utilizado.
- TResult
Este parâmetro de tipo não é utilizado.
Parâmetros
- outer
- ParallelQuery<TOuter>
Este parâmetro não é utilizado.
- inner
- IEnumerable<TInner>
Este parâmetro não é utilizado.
- outerKeySelector
- Func<TOuter,TKey>
Este parâmetro não é utilizado.
- innerKeySelector
- Func<TInner,TKey>
Este parâmetro não é utilizado.
- resultSelector
- Func<TOuter,IEnumerable<TInner>,TResult>
Este parâmetro não é utilizado.
- comparer
- IEqualityComparer<TKey>
Este parâmetro não é utilizado.
Devoluções
Esta sobrecarga gera sempre um NotSupportedException.
- Atributos
Exceções
A exceção que ocorre quando este método é chamado.
Observações
Esta sobrecarga existe para impedir o uso do GroupJoin com uma fonte de dados à esquerda do tipo ParallelQuery<TSource> e uma fonte de dados à direita do tipo IEnumerable<T>. Caso contrário, o operador GroupJoin pareceria estar vinculado à implementação paralela, mas na realidade ligaria à implementação sequencial.
Ver também
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 chave e agrupa os resultados. Um especificado IEqualityComparer<T> é usado para comparar tonalidades.
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);
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 Genérico
- TOuter
O tipo dos elementos da primeira sequência.
- TInner
O tipo dos elementos da segunda sequência.
- TKey
O tipo das teclas devolvidas pelas funções seletoras de teclas.
- TResult
O tipo dos elementos resultantes.
Parâmetros
- outer
- ParallelQuery<TOuter>
A primeira sequência a juntar-se.
- inner
- ParallelQuery<TInner>
A sequência a juntar à primeira sequência.
- outerKeySelector
- Func<TOuter,TKey>
Uma função para extrair a chave de junção de cada elemento da primeira sequência.
- innerKeySelector
- Func<TInner,TKey>
Uma função para extrair a chave de junção de cada elemento da segunda sequência.
- resultSelector
- Func<TOuter,IEnumerable<TInner>,TResult>
Uma função para criar um elemento resultante a partir de um elemento da primeira sequência e uma coleção de elementos correspondentes da segunda sequência.
- comparer
- IEqualityComparer<TKey>
Um IEqualityComparer<T> para fazer hash e comparar chaves.
Devoluções
Uma sequência que tem elementos do tipo TResult obtidos ao realizar uma junção agrupada em duas sequências.
Exceções
A consulta foi cancelada com o token passado por WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).
outer ou inner ou outerKeySelector ou innerKeySelector ou resultSelector é null (Nothing em Visual Basic).
Uma ou mais exceções ocorreram durante a avaliação da consulta.