* stored in that row.
* @param vt
* @return
*/
public ItemId processItemRecord(VoltTable vt) {
ItemId itemId = new ItemId(vt.getLong("i_id"));
TimestampType endDate = vt.getTimestampAsTimestamp("i_end_date");
short numBids = (short)vt.getLong("i_num_bids");
double currentPrice = vt.getDouble("i_current_price");
ItemInfo itemInfo = new ItemInfo(itemId, currentPrice, endDate, numBids);
if (vt.hasColumn("ip_id")) itemInfo.status = ItemStatus.CLOSED;
if (vt.hasColumn("i_status")) itemInfo.status = ItemStatus.get(vt.getLong("i_status"));
UserId sellerId = new UserId(vt.getLong("i_u_id"));
assert (itemId.getSellerId().equals(sellerId));
ItemStatus qtype = profile.addItemToProperQueue(itemInfo, false);
this.updated.put(qtype);
return (itemId);