Class SetDistinctnessComparer
Comparer for checking whether sets are distinct, check may either be using the entire set or by using only a subset of variables.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class SetDistinctnessComparer : IEqualityComparer<ISet>
Constructors
| Edit this page View SourceSetDistinctnessComparer()
Creates a new comparer that compares across all variables.
Declaration
public SetDistinctnessComparer()
SetDistinctnessComparer(IEnumerable<string>)
Creates a new comparer that compare only on the specific variables.
Declaration
public SetDistinctnessComparer(IEnumerable<string> variables)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | variables | Variables. |
Methods
| Edit this page View SourceEquals(ISet, ISet)
Determines whether the given sets are equal.
Declaration
public bool Equals(ISet x, ISet y)
Parameters
Type | Name | Description |
---|---|---|
ISet | x | First Set. |
ISet | y | Second Set. |
Returns
Type | Description |
---|---|
bool | True if sets are equal, false otherwise. |
GetHashCode(ISet)
Gets the hash code for a set.
Declaration
public int GetHashCode(ISet obj)
Parameters
Type | Name | Description |
---|---|---|
ISet | obj | Set. |
Returns
Type | Description |
---|---|
int | Hash Code. |