public class OrderByClause extends Clause
COUNT, FOR, GROUPBYCLAUSE, LET, ORDERBYCLAUSE, TRACE, WHERE, WINDOW| Constructor and Description |
|---|
OrderByClause(SortKeyDefinition[] sortKeys,
TupleExpression tupleExpression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsNonInlineableVariableReference(Binding binding)
Determine whether the clause contains a reference to a local variable binding that cannot be inlined
|
OrderByClause |
copy()
Create a copy of this clause
|
AtomicValue |
evaluateSortKey(int n,
XPathContext c)
Callback for evaluating the sort keys
|
void |
explain(ExpressionPresenter out)
Diagnostic print of expression structure.
|
AtomicComparer[] |
getAtomicComparers() |
int |
getClauseKey()
Get a keyword identifying what kind of clause this is
|
TuplePull |
getPullStream(TuplePull base,
XPathContext context)
Get a tuple stream that implements the functionality of this clause, taking its
input from another tuple stream which this clause modifies
|
TuplePush |
getPushStream(TuplePush destination,
XPathContext context)
Get a push-mode tuple stream that implements the functionality of this clause, supplying its
output to another tuple stream
|
SortKeyDefinition[] |
getSortKeyDefinitions() |
void |
processSubExpressions(ExpressionProcessor processor)
Process the subexpressions of this clause
|
String |
toString() |
void |
typeCheck(ExpressionVisitor visitor)
Type-check the expression
|
gatherVariableReferences, getLocationId, getRangeVariables, optimize, refineVariableType, setLocationIdpublic OrderByClause(SortKeyDefinition[] sortKeys, TupleExpression tupleExpression)
public int getClauseKey()
ClausegetClauseKey in class Clausepublic boolean containsNonInlineableVariableReference(Binding binding)
ClausecontainsNonInlineableVariableReference in class Clausebinding - the binding for the local variable in questionpublic OrderByClause copy()
Clausepublic SortKeyDefinition[] getSortKeyDefinitions()
public AtomicComparer[] getAtomicComparers()
public TuplePull getPullStream(TuplePull base, XPathContext context)
getPullStream in class Clausebase - the input tuple streamcontext - public TuplePush getPushStream(TuplePush destination, XPathContext context)
getPushStream in class Clausedestination - the output tuple streamcontext - public void processSubExpressions(ExpressionProcessor processor) throws XPathException
processSubExpressions in class Clauseprocessor - the expression processor used to process the subexpressionsXPathException - if any error is detectedpublic void typeCheck(ExpressionVisitor visitor) throws XPathException
typeCheck in class Clausevisitor - the ExpressionVisitor, providing access to static context informationXPathException - if any error is detectedpublic void explain(ExpressionPresenter out)
public AtomicValue evaluateSortKey(int n, XPathContext c) throws XPathException
XPathExceptionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.