Class SparqlOrderingComparer
Comparer class for use in SPARQL ORDER BY - implements the Semantics broadly similar to the relational operator but instead of erroring using Node/Lexical ordering where an error would occur it makes an appropriate decision.
Implements
System.Collections.Generic.IComparer<INode>
System.Collections.Generic.IComparer<IValuedNode>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query
Assembly: dotNetRDF.dll
Syntax
public class SparqlOrderingComparer : SparqlNodeComparer, IComparer<INode>, IComparer<IValuedNode>
Methods
| Improve this Doc View SourceCompare(INode, INode)
Compares two Nodes.
Declaration
public override int Compare(INode x, INode y)
Parameters
Type | Name | Description |
---|---|---|
INode | x | Node. |
INode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceCompare(IValuedNode, IValuedNode)
Compares two Nodes.
Declaration
public override int Compare(IValuedNode x, IValuedNode y)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode | x | Node. |
IValuedNode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceDateTimeCompare(IValuedNode, IValuedNode)
Compares two Date Times for Date Time ordering.
Declaration
protected override int DateTimeCompare(IValuedNode x, IValuedNode y)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode | x | Node. |
IValuedNode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Implements
System.Collections.Generic.IComparer<T>
System.Collections.Generic.IComparer<T>