List<CatalogReceipt> catalogReceipts = new Vector<CatalogReceipt>();
for (String catalogId : catalogToSizeOfMap.keySet()) {
Catalog catalog = this.getCatalog(catalogId);
QueryExpression qe = this.reduceToUnderstoodExpressions(catalog, queryExpression);
if (qe != null)
catalogReceipts.addAll(catalog.query(qe));
}
List<TransactionReceipt> transactionReceipts = this.getPossiblyUnindexedTransactionReceipts(catalogReceipts);
LOG.log(Level.INFO, "Sorting Query Results . . . ");
Collections.sort(transactionReceipts, new Comparator<TransactionReceipt>() {
public int compare(TransactionReceipt o1,