Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
output_row.orderId = input_row.orderId;
output_row.orderText = input_row.orderText;
context.sum+= input_row.orderId;
System.out.println("The sum of all order ids is: " + context.sum);
1|Mr. Jones first order
2|Mr. Jones second order
3|The third order of Mr. Jones
6|Mrs. Tompson first ordr
7|Mrs. Tompson second order
8|Mrs. Tompson order number third
18|Mrs. Jones only one order
19|Mr. Albert only one order
20|Mrs. Albert first order
21|Mrs. Albert second order
22|Mrs. Albert third order
The sum of all order ids is: 127.0