ParallelEnumerable.Join Método

Definição

Correlaciona em paralelo os elementos de duas sequências com base em chaves correspondentes.

Sobrecargas

Nome Description
Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>)
Obsoleto.

Essa sobrecarga de junção nunca deve ser chamada. Esse método é marcado como obsoleto e sempre é lançado NotSupportedException quando invocado.

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 com base em chaves correspondentes. O comparador de igualdade padrão é usado para comparar chaves.

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

Essa sobrecarga de junção nunca deve ser chamada. Esse método é marcado como obsoleto e sempre é lançado NotSupportedException quando invocado.

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 com base em chaves correspondentes. Um IEqualityComparer<T> especificado é usado para comparar chaves.

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

Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs

Cuidado

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>.

Essa sobrecarga de junção nunca deve ser chamada. Esse 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

TOuter

Esse parâmetro de tipo não é usado.

TInner

Esse parâmetro de tipo não é usado.

TKey

Esse parâmetro de tipo não é usado.

TResult

Esse parâmetro de tipo não é usado.

Parâmetros

outer
ParallelQuery<TOuter>

Este parâmetro não é usado.

inner
IEnumerable<TInner>

Este parâmetro não é usado.

outerKeySelector
Func<TOuter,TKey>

Este parâmetro não é usado.

innerKeySelector
Func<TInner,TKey>

Este parâmetro não é usado.

resultSelector
Func<TOuter,TInner,TResult>

Este parâmetro não é usado.

Retornos

ParallelQuery<TResult>

Essa sobrecarga sempre lança um NotSupportedException.

Atributos

Exceções

A exceção que ocorre quando esse método é chamado.

Comentários

Essa sobrecarga existe para não permitir a junção de uso 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 parece estar associando à implementação paralela, mas, na realidade, associaria-se à implementação sequencial.

Confira também

Aplica-se a

Join<TOuter,TInner,TKey,TResult>(ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>)

Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs

Correlaciona em paralelo os elementos de duas sequências com base em chaves correspondentes. O comparador de igualdade padrão é 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

TOuter

O tipo dos elementos da primeira sequência.

TInner

O tipo dos elementos da segunda sequência.

TKey

O tipo das chaves retornadas pelas funções do seletor de chave.

TResult

O tipo dos elementos de resultado.

Parâmetros

outer
ParallelQuery<TOuter>

A primeira sequência a ser unida.

inner
ParallelQuery<TInner>

A sequência a ser unida à 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.

Retornos

ParallelQuery<TResult>

Uma sequência que tem elementos do tipo TResult que são obtidos executando uma junção interna em duas sequências.

Exceções

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.

Confira 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>)

Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs

Cuidado

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>.

Essa sobrecarga de junção nunca deve ser chamada. Esse 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>.")]
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

TOuter

Esse parâmetro de tipo não é usado.

TInner

Esse parâmetro de tipo não é usado.

TKey

Esse parâmetro de tipo não é usado.

TResult

Esse parâmetro de tipo não é usado.

Parâmetros

outer
ParallelQuery<TOuter>

Este parâmetro não é usado.

inner
IEnumerable<TInner>

Este parâmetro não é usado.

outerKeySelector
Func<TOuter,TKey>

Este parâmetro não é usado.

innerKeySelector
Func<TInner,TKey>

Este parâmetro não é usado.

resultSelector
Func<TOuter,TInner,TResult>

Este parâmetro não é usado.

comparer
IEqualityComparer<TKey>

Este parâmetro não é usado.

Retornos

ParallelQuery<TResult>

Essa sobrecarga sempre lança um NotSupportedException.

Atributos

Exceções

A exceção que ocorre quando esse método é chamado.

Comentários

Essa sobrecarga existe para não permitir o uso de Junção 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 parece estar associando à implementação paralela, mas, na realidade, associaria-se à implementação sequencial.

Confira 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>)

Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs
Origem:
ParallelEnumerable.cs

Correlaciona em paralelo os elementos de duas sequências com base em chaves correspondentes. Um IEqualityComparer<T> especificado é 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, 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);
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

TOuter

O tipo dos elementos da primeira sequência.

TInner

O tipo dos elementos da segunda sequência.

TKey

O tipo das chaves retornadas pelas funções do seletor de chave.

TResult

O tipo dos elementos de resultado.

Parâmetros

outer
ParallelQuery<TOuter>

A primeira sequência a ser unida.

inner
ParallelQuery<TInner>

A sequência a ser unida à 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> ao hash e às chaves de comparação.

Retornos

ParallelQuery<TResult>

Uma sequência que tem elementos do tipo TResult que são obtidos executando uma junção interna em duas sequências.

Exceções

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.

Confira também

Aplica-se a