Package net.sf.saxon.expr.flwor
Class OrderByClausePush
- java.lang.Object
-
- net.sf.saxon.expr.flwor.TuplePush
-
- net.sf.saxon.expr.flwor.OrderByClausePush
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicComparer[]comparers(package private) XPathContextcontext(package private) intposition
-
Constructor Summary
Constructors Constructor Description OrderByClausePush(TuplePush destination, TupleExpression tupleExpr, OrderByClause orderBy, XPathContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the tuple stream, indicating that no more tuples will be deliveredintcompare(int a, int b)Compare two objects within this Sortable, identified by their position.voidprocessTuple(XPathContext context)Process the next tuple.voidswap(int a, int b)Swap two objects within this Sortable, identified by their position.
-
-
-
Field Detail
-
comparers
protected AtomicComparer[] comparers
-
context
XPathContext context
-
position
int position
-
-
Constructor Detail
-
OrderByClausePush
public OrderByClausePush(TuplePush destination, TupleExpression tupleExpr, OrderByClause orderBy, XPathContext context)
-
-
Method Detail
-
processTuple
public void processTuple(XPathContext context) throws XPathException
Process the next tuple.- Specified by:
processTuplein classTuplePush- Parameters:
context- the dynamic evaluation context- Throws:
XPathException- if a dynamic error occurs
-
compare
public int compare(int a, int b)Compare two objects within this Sortable, identified by their position.
-
swap
public void swap(int a, int b)Swap two objects within this Sortable, identified by their position.
-
close
public void close() throws XPathExceptionClose the tuple stream, indicating that no more tuples will be delivered- Overrides:
closein classTuplePush- Throws:
XPathException- if a dynamic error occurs
-
-