ParallelEnumerable.Join 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 baseadas em chaves correspondentes.
Sobrecargas
Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,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 Join nunca deve ser chamada. Este método é marcado como obsoleto e é sempre lançado NotSupportedException quando invocado.
public:
generic <typename TOuter, typename TInner, typename TKey, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TResult> ^ Join(System::Linq::ParallelQuery<TOuter> ^ outer, System::Collections::Generic::IEnumerable<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, 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> Join<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,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 Join : System.Linq.ParallelQuery<'Outer> * seq<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, 'Inner, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Join(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, 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,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 Join 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 Join pareceria estar vinculado à implementação paralela, mas na realidade ligaria à implementação sequencial.
Ver também
Aplica-se a
Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>)
Correlaciona em paralelo os elementos de duas sequências baseadas em chaves correspondentes. 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> ^ Join(System::Linq::ParallelQuery<TOuter> ^ outer, System::Linq::ParallelQuery<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, TInner, TResult> ^ resultSelector);
public static System.Linq.ParallelQuery<TResult> Join<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,TInner,TResult> resultSelector);
static member Join : System.Linq.ParallelQuery<'Outer> * System.Linq.ParallelQuery<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, 'Inner, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Join(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, 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,TInner,TResult>
Uma função para criar um elemento de resultado a partir de dois elementos correspondentes.
Devoluções
Uma sequência que tem elementos do tipo TResult obtidos ao realizar uma junção interna 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
Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,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 Join nunca deve ser chamada. Este método é marcado como obsoleto e é sempre lançado NotSupportedException quando invocado.
public:
generic <typename TOuter, typename TInner, typename TKey, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TResult> ^ Join(System::Linq::ParallelQuery<TOuter> ^ outer, System::Collections::Generic::IEnumerable<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, 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> Join<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,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 Join : System.Linq.ParallelQuery<'Outer> * seq<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, 'Inner, 'Result> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Join(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, 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,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 Join 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 Join pareceria estar vinculado à implementação paralela, mas na realidade ligaria à implementação sequencial.
Ver também
Aplica-se a
Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>, IEqualityComparer<TKey>)
Correlaciona em paralelo os elementos de duas sequências baseadas em chaves correspondentes. 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> ^ Join(System::Linq::ParallelQuery<TOuter> ^ outer, System::Linq::ParallelQuery<TInner> ^ inner, Func<TOuter, TKey> ^ outerKeySelector, Func<TInner, TKey> ^ innerKeySelector, Func<TOuter, TInner, TResult> ^ resultSelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Linq.ParallelQuery<TResult> Join<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,TInner,TResult> resultSelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
static member Join : System.Linq.ParallelQuery<'Outer> * System.Linq.ParallelQuery<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, 'Inner, 'Result> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Join(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, 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,TInner,TResult>
Uma função para criar um elemento de resultado a partir de dois elementos correspondentes.
- 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 interna 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.