296297298299300301302303304305306
// Loop from the end since the call to close() will remove the // element from the list. for (int i = sortControllers.size() - 1; i >= 0; i--) { SortController sc = (SortController) sortControllers.get(i); sc.completedInserts(); } sortControllers.clear(); } }
387388389390391392393394395396397
} /* ** End the sort and open up the result set */ sorter.completedInserts(); scanController = tc.openSortScan(sortId, activation.getResultSetHoldability()); /*
306307308309310311312313314315316
while ((inputRow = getNextRowFromRS()) != null) { sorter.insert(inputRow.getRowArray()); } source.close(); sorter.completedInserts(); sortProperties = sorter.getSortInfo(). getAllSortInfo(sortProperties); if (aggInfoList.hasDistinct()) { /*
314315316317318319320321322323324
/* The sorter is responsible for doing the cloning */ sorter.insert(inputRow.getRowArray()); } source.close(); sortProperties = sorter.getSortInfo().getAllSortInfo(sortProperties); sorter.completedInserts(); return tc.openSortScan(sortId, activation.getResultSetHoldability()); }
10771078107910801081108210831084108510861087
*/ scan.setEstimatedRowCount(rowCount); } finally { sorter.completedInserts(); } return new CardinalityCounter(tc.openSortRowSource(sortId)); } }
299300301302303304305306307308309
325326327328329330331332333334335
310311312313314315316317318319320
10891090109110921093109410951096109710981099