rtLists.get(index).set(3, ((Integer)rtLists.get(index).get(3) ).intValue()+ 1);
}
}
// execute MapReduce Transaction to check the result
ClientResponse cr = client.callProcedure("MRquery1");
assertEquals(Status.OK, cr.getStatus());
System.out.println("I am starting to compare the results...");
int index = -1;
// 0:ol_number,1:sum(ol_quantity),2:SUM(ol_amount),3:weight(ol_quantity),4:weight(ol_amount),5:sum
for ( VoltTable v : cr.getResults()) {
System.out.println("Jason,voltable:" + v);
while (v.advanceRow()) {
Integer key = new Integer ((int) v.getLong(0));
assertTrue(map.containsKey(key));
index = map.get(key);