qIter = new QueryIterSort(qIter, opOrder.getConditions(), execCxt) ;
return qIter ;
}
protected QueryIterator execute(OpTopN opTop, QueryIterator input) {
QueryIterator qIter = null ;
// We could also do (reduced) here as well.
// but it's detected in TransformTopN and turned into (distinct)
// there so that code catches that already.
// We leave this to do the strict case of (top (distinct ...))
if (opTop.getSubOp() instanceof OpDistinct) {