306307308309310311312313314315316
while ((inputRow = getNextRowFromRS()) != null) { sorter.insert(inputRow.getRowArray()); } source.close(); sorter.completedInserts(); sortProperties = sorter.getSortInfo(). getAllSortInfo(sortProperties); if (aggInfoList.hasDistinct()) { /*
384385386387388389390391392393394
} /* ** End the sort and open up the result set */ sorter.completedInserts(); scanController = tc.openSortScan(sortId, activation.getResultSetHoldability()); /*
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()); }
312313314315316317318319320321322
313314315316317318319320321322323
11561157115811591160116111621163116411651166
*/ scan.setEstimatedRowCount(rowCount); } finally { sorter.completedInserts(); } return new CardinalityCounter(tc.openSortRowSource(sortId)); } }
294295296297298299300301302303304
// 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 = sortControllers.get(i); sc.completedInserts(); } sortControllers.clear(); } }
386387388389390391392393394395396
309310311312313314315316317318319
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(); } }