|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.flwor.TuplePull
net.sf.saxon.expr.flwor.OrderByClausePull
public class OrderByClausePull
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 | |
|---|---|
OrderByClausePull(TuplePull base,
TupleExpression tupleExpr,
OrderByClause orderBy,
XPathContext context)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the tuple stream, indicating that although not all tuples have been read, no further tuples are required and resources can be released |
int |
compare(int a,
int b)
Compare two objects within this Sortable, identified by their position. |
boolean |
nextTuple(XPathContext context)
Move on to 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 OrderByClausePull(TuplePull base,
TupleExpression tupleExpr,
OrderByClause orderBy,
XPathContext context)
| Method Detail |
|---|
public boolean nextTuple(XPathContext context)
throws XPathException
nextTuple in class TuplePullcontext - the dynamic evaluation context
XPathException
public int compare(int a,
int b)
compare in interface Sortable
public void swap(int a,
int b)
swap in interface Sortablepublic void close()
close in class TuplePull
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||