int bidResultsCtr = 0;
for (i = 0; i < with_bids.length; i++) {
long itemId = (Long)output_rows[i][0];
long sellerId = (Long)output_rows[i][1];
ItemStatus status = (with_bids[i] ? ItemStatus.WAITING_FOR_PURCHASE : ItemStatus.CLOSED);
voltQueueSQL(updateItemStatus, status.ordinal(), currentTime, itemId, sellerId);
if (debug)
LOG.debug(String.format("Updated Status for Item %d => %s", itemId, status));
if (with_bids[i]) {
final VoltTable vt = bidResults[bidResultsCtr++];