Class RowEqualityComparer<T>
Creates an IEqualityComparer<T> for comparing two rows of the same type for equality, using high performance generated code. This is used by grouping overloads in AggregateTransformFactory, also see the examples in Dataflow Aggregations.
To create instances of this class that base the comparison on specified columns, use Create<T>(Action<IGroupByCommand>). To base the comparison on a grouping key function, use Create<T, TKey>(Func<T, TKey>).
Implements
Namespace: actionETL
Assembly: actionETL.dll
Syntax
public class RowEqualityComparer<T> : IEqualityComparer<T> where T : class
Type Parameters
| Name | Description |
|---|---|
| T | The type of the rows. |
Methods
Equals(T, T)
Determines whether the specified objects are equal.
Declaration
public bool Equals(T x, T y)
Parameters
| Type | Name | Description |
|---|---|---|
| T | x | The first object of type |
| T | y | The second object of type |
Returns
| Type | Description |
|---|---|
| Boolean |
|
GetHashCode(T)
Returns a hash code for this instance.
Declaration
public int GetHashCode(T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The object. |
Returns
| Type | Description |
|---|---|
| Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |