|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.flwor.TuplePush net.sf.saxon.expr.flwor.OrderByClausePush
public class OrderByClausePush
Represents the tuple stream delivered by an "order by" clause. This sorts the tuple stream supplied as its input, and outputs the same tuples but in sorted order.
Field Summary | |
---|---|
protected AtomicComparer[] |
comparers
|
Constructor Summary | |
---|---|
OrderByClausePush(TuplePush destination,
TupleExpression tupleExpr,
OrderByClause orderBy,
XPathContext context)
|
Method Summary | |
---|---|
void |
close()
Close the tuple stream, indicating that no more tuples will be delivered |
int |
compare(int a,
int b)
Compare two objects within this Sortable, identified by their position. |
void |
processTuple(XPathContext context)
Process the next tuple. |
void |
swap(int a,
int b)
Swap two objects within this Sortable, identified by their position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AtomicComparer[] comparers
Constructor Detail |
---|
public OrderByClausePush(TuplePush destination, TupleExpression tupleExpr, OrderByClause orderBy, XPathContext context)
Method Detail |
---|
public void processTuple(XPathContext context) throws XPathException
processTuple
in class TuplePush
context
- the dynamic evaluation context
XPathException
- if a dynamic error occurspublic int compare(int a, int b)
compare
in interface Sortable
public void swap(int a, int b)
swap
in interface Sortable
public void close() throws XPathException
close
in class TuplePush
XPathException
- if a dynamic error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |