Class OrderByExpression
An ORDER BY which orders based on the values of a Sparql Expression.
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)
Namespace: VDS.RDF.Query.Ordering
Assembly: dotNetRDF.dll
Syntax
public class OrderByExpression : BaseOrderBy, ISparqlOrderBy, IComparer<ISet>
Constructors
| Improve this Doc View SourceOrderByExpression(ISparqlExpression)
Creates a new Order By using the given Expression.
Declaration
public OrderByExpression(ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr | Expression to order by. |
Properties
| Improve this Doc View SourceExpression
Gets the Expression used for Ordering.
Declaration
public override ISparqlExpression Expression { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
Overrides
| Improve this Doc View SourceIsSimple
Gets whether the Ordering is Simple.
Declaration
public override bool IsSimple { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceVariables
Gets all the Variables used in the Ordering.
Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Overrides
Methods
| Improve this Doc View SourceCompare(ISet, ISet)
Orders the sets based on the values resulting from evaluating the expression for both solutions.
Declaration
public override int Compare(ISet x, ISet y)
Parameters
Type | Name | Description |
---|---|---|
ISet | x | A Set. |
ISet | y | A Set. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceGetComparer(IMatchTriplePattern)
Generates a Comparer than can be used to do Ordering based on the given Triple Pattern.
Declaration
public override IComparer<Triple> GetComparer(IMatchTriplePattern pattern)
Parameters
Type | Name | Description |
---|---|---|
IMatchTriplePattern | pattern | Triple Pattern. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IComparer<Triple> |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of the Order By.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
System.Collections.Generic.IComparer<T>