Show / Hide Table of Contents

Class BaseOrderBy

Base Class for implementing Sparql ORDER BYs.
Inheritance
System.Object
BaseOrderBy
OrderByExpression
OrderByVariable
Implements
ISparqlOrderBy
System.Collections.Generic.IComparer<ISet>
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
| Improve this Doc View Source

_context

Stores the Evaluation Context.
Declaration
protected SparqlEvaluationContext _context
Field Value
Type Description
SparqlEvaluationContext
| Improve this Doc View Source

_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 Source

Child

Gets/Sets the Child Order By.
Declaration
public ISparqlOrderBy Child { get; set; }
Property Value
Type Description
ISparqlOrderBy
| Improve this Doc View Source

Context

Sets the Evaluation Context for the Ordering.
Declaration
public SparqlEvaluationContext Context { set; }
Property Value
Type Description
SparqlEvaluationContext
| Improve this Doc View Source

Descending

Sets the Ordering to Descending.
Declaration
public bool Descending { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Expression

Gets the Expression used in the Ordering.
Declaration
public abstract ISparqlExpression Expression { get; }
Property Value
Type Description
ISparqlExpression
| Improve this Doc View Source

IsSimple

Gets whether the Ordering is Simple.
Declaration
public abstract bool IsSimple { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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 Source

Compare(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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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

ISparqlOrderBy
System.Collections.Generic.IComparer<T>

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • _child
    • _context
    • _modifier
  • Properties
    • Child
    • Context
    • Descending
    • Expression
    • IsSimple
    • Variables
  • Methods
    • Compare(ISet, ISet)
    • GetComparer(IMatchTriplePattern)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX