Class BaseOrderBy
Base Class for implementing Sparql ORDER BYs.
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 abstract class BaseOrderBy : ISparqlOrderBy, IComparer<ISet>
Fields
| Improve this Doc View Source_child
Holds the Child Order By (if any).
Declaration
protected ISparqlOrderBy _child
Field Value
Type | Description |
---|---|
ISparqlOrderBy |
_context
Stores the Evaluation Context.
Declaration
protected SparqlEvaluationContext _context
Field Value
Type | Description |
---|---|
SparqlEvaluationContext |
_modifier
Modifier used to make ordering Descending.
Declaration
protected int _modifier
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Implementations derived from this class should multiply their comparison results by the modifier to automatically provide Ascending/Descending order.
Properties
| Improve this Doc View SourceChild
Gets/Sets the Child Order By.
Declaration
public ISparqlOrderBy Child { get; set; }
Property Value
Type | Description |
---|---|
ISparqlOrderBy |
Context
Sets the Evaluation Context for the Ordering.
Declaration
public SparqlEvaluationContext Context { set; }
Property Value
Type | Description |
---|---|
SparqlEvaluationContext |
Descending
Sets the Ordering to Descending.
Declaration
public bool Descending { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Expression
Gets the Expression used in the Ordering.
Declaration
public abstract ISparqlExpression Expression { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
IsSimple
Gets whether the Ordering is Simple.
Declaration
public abstract bool IsSimple { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Variables
Gets all the Variables used in the Ordering.
Declaration
public abstract IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Methods
| Improve this Doc View SourceCompare(ISet, ISet)
Abstract Compare method which derived classes should implement their ordering in.
Declaration
public abstract int Compare(ISet x, ISet y)
Parameters
Type | Name | Description |
---|---|---|
ISet | x | A Set. |
ISet | y | A Set. |
Returns
Type | Description |
---|---|
System.Int32 |
GetComparer(IMatchTriplePattern)
Generates a Comparer than can be used to do Ordering based on the given Triple Pattern.
Declaration
public abstract IComparer<Triple> GetComparer(IMatchTriplePattern pattern)
Parameters
Type | Name | Description |
---|---|---|
IMatchTriplePattern | pattern | Triple Pattern. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IComparer<Triple> |
ToString()
Gets the String representation of the Order By.
Declaration
public abstract override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.Collections.Generic.IComparer<T>