2using System.Collections.Generic;
17 private readonly
string[] variables;
19 private readonly
bool[] ascending;
20 private readonly
bool[] calculated;
21 private readonly
int count;
34 this.count = OrderBy.
Length;
35 this.variables =
new string[this.count];
37 this.ascending =
new bool[this.count];
38 this.calculated =
new bool[this.count];
40 for (i = 0; i < this.count; i++)
42 this.expression[i] = Node = OrderBy[i].Key;
43 this.ascending[i] = OrderBy[i].Value;
47 this.variables[i] = Ref.VariableName;
48 this.calculated[i] =
false;
51 this.calculated[i] =
true;
70 for (i = 0; i < this.count; i++)
72 if (this.calculated[i])
78 e1 = EvaluateElement(this.expression[i], v1);
79 e2 = EvaluateElement(this.expression[i], v2);
83 e1 = x[this.variables[i]];
84 e2 = y[this.variables[i]];
98 return this.ascending[i] ? j : -j;
Represents a string literal.
Set of semantic elements.
static ISemanticElement Encapsulate(object Value)
Encapsulates an object as a semantic element.
Script runtime exception.
IElement ReturnValue
Return value.
Class managing a script expression.
object Evaluate(Variables Variables)
Evaluates the expression, using the variables provided in the Variables collection....
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Represents a variable reference.
Comparer for ordering a SPARQL result set.
int Compare(ISparqlResultRecord x, ISparqlResultRecord y)
Compares two records.
OrderResultSet(KeyValuePair< ScriptNode, bool >[] OrderBy)
Comparer for ordering a SPARQL result set.
Interface for semantic nodes.
Interface for result records of a SPARQL query.