494495496497498499500501502503504
if (sortAndSlice.hasOrder()) { RowSetNavigatorData nav = (RowSetNavigatorData) first.getNavigator(); nav.sortUnion(sortAndSlice); nav.trim(sortAndSlice.getLimitStart(session), sortAndSlice.getLimitCount(session, maxRows)); } navigator.reset();
11631164116511661167116811691170117111721173
if (isDistinctSelect) { navigator.removeDuplicates(); } navigator.sortOrder(); navigator.trim(getLimitStart(session), getLimitCount(session, rowCount)); return r; }