ParallelEnumerable.Union Yöntem

Tanım

İki paralel dizinin küme birleşimini üretir.

Aşırı Yüklemeler

Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Geçersiz.

Bu Birleşim aşırı yüklemesi hiçbir zaman çağrılmamalıdır. Bu yöntem eski olarak işaretlenir ve çağrıldığında her zaman atar NotSupportedException .

Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

Varsayılan eşitlik karşılaştırıcısını kullanarak iki paralel sıranın küme birleşimini üretir.

Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
Geçersiz.

Bu Birleşim aşırı yüklemesi hiçbir zaman çağrılmamalıdır. Bu yöntem eski olarak işaretlenir ve çağrıldığında her zaman atar NotSupportedException .

Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

Belirtilen IEqualityComparer{T} kullanarak iki paralel sıranın küme birleşimini üretir.

Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs

Dikkat

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

Bu Birleşim aşırı yüklemesi hiçbir zaman çağrılmamalıdır. Bu yöntem eski olarak işaretlenir ve çağrıldığında her zaman atar NotSupportedException .

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Union(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second);
[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<TSource> Union<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second);
[<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 Union : System.Linq.ParallelQuery<'Source> * seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Union(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)

Tür Parametreleri

TSource

Bu tür parametresi kullanılmaz.

Parametreler

first
ParallelQuery<TSource>

Bu parametre kullanılmaz.

second
IEnumerable<TSource>

Bu parametre kullanılmaz.

Döndürülenler

Bu aşırı yükleme her zaman bir NotSupportedExceptionoluşturur.

Öznitelikler

Özel durumlar

Bu yöntem çağrıldığında oluşan özel durum.

Sorgunun değerlendirilmesi sırasında bir veya daha fazla özel durum oluştu.

Açıklamalar

Bu aşırı yükleme, türü sol veri kaynağı ve türü ParallelQuery<TSource> sağ veri kaynağı olan Union kullanımına IEnumerable<T>izin vermek için vardır. Aksi takdirde, Union işleci paralel uygulamaya bağlanıyor gibi görünür, ancak gerçekte sıralı uygulamaya bağlanır.

Ayrıca bkz.

Şunlara uygulanır

Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs

Varsayılan eşitlik karşılaştırıcısını kullanarak iki paralel sıranın küme birleşimini üretir.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Union(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second);
public static System.Linq.ParallelQuery<TSource> Union<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second);
static member Union : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Union(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource)) As ParallelQuery(Of TSource)

Tür Parametreleri

TSource

Giriş dizilerinin öğelerinin türü.

Parametreler

first
ParallelQuery<TSource>

Birleşim için ilk kümeyi oluşturan benzersiz öğeleri olan bir dizi.

second
ParallelQuery<TSource>

Ayrı öğeleri birleşim için ikinci kümeyi oluşturan bir dizi.

Döndürülenler

Yinelenenler hariç olmak üzere her iki giriş dizisinden öğeleri içeren bir dizi.

Özel durumlar

first veya second null başvurudur (Visual Basic'te hiçbir şey).

Sorgunun değerlendirilmesi sırasında bir veya daha fazla özel durum oluştu.

Ayrıca bkz.

Şunlara uygulanır

Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs

Dikkat

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

Bu Birleşim aşırı yüklemesi hiçbir zaman çağrılmamalıdır. Bu yöntem eski olarak işaretlenir ve çağrıldığında her zaman atar NotSupportedException .

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Union(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ 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<TSource> Union<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> 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<TSource> Union<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? 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 Union : System.Linq.ParallelQuery<'Source> * seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Union(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource), comparer As IEqualityComparer(Of TSource)) As ParallelQuery(Of TSource)

Tür Parametreleri

TSource

Bu tür parametresi kullanılmaz.

Parametreler

first
ParallelQuery<TSource>

Bu parametre kullanılmaz.

second
IEnumerable<TSource>

Bu parametre kullanılmaz.

comparer
IEqualityComparer<TSource>

Bu parametre kullanılmaz.

Döndürülenler

Bu aşırı yükleme her zaman bir NotSupportedExceptionoluşturur.

Öznitelikler

Özel durumlar

Bu yöntem çağrıldığında oluşan özel durum.

Sorgunun değerlendirilmesi sırasında bir veya daha fazla özel durum oluştu.

Açıklamalar

Bu aşırı yükleme, türü sol veri kaynağı ve türü ParallelQuery<TSource> sağ veri kaynağı olan Union kullanımına IEnumerable<T>izin vermek için vardır. Aksi takdirde Union işleci paralel uygulamaya bağlanıyor gibi görünebilir ancak gerçekte sıralı uygulamaya bağlanır.

Ayrıca bkz.

Şunlara uygulanır

Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs

Belirtilen IEqualityComparer{T} kullanarak iki paralel sıranın küme birleşimini üretir.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Union(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
public static System.Linq.ParallelQuery<TSource> Union<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> comparer);
public static System.Linq.ParallelQuery<TSource> Union<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
static member Union : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Union(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource), comparer As IEqualityComparer(Of TSource)) As ParallelQuery(Of TSource)

Tür Parametreleri

TSource

Giriş dizilerinin öğelerinin türü.

Parametreler

first
ParallelQuery<TSource>

Birleşim için ilk kümeyi oluşturan benzersiz öğeleri olan bir dizi.

second
ParallelQuery<TSource>

Ayrı öğeleri birleşim için ikinci kümeyi oluşturan bir dizi.

comparer
IEqualityComparer<TSource>

Değerleri karşılaştırmak için bir IEqualityComparer<T> .

Döndürülenler

Yinelenenler hariç olmak üzere her iki giriş dizisinden öğeleri içeren bir dizi.

Özel durumlar

first veya second null başvurudur (Visual Basic'te hiçbir şey).

Sorgunun değerlendirilmesi sırasında bir veya daha fazla özel durum oluştu.

Ayrıca bkz.

Şunlara uygulanır