As part of this class we have seen
- Overview of collections – List, Set and Map
- Basic operations on List
- Process collections using loops
- Process collections using filter and map
Reading orders and orderItems from file system
myTake function using loops
Get revenue for order id using loops
Exercises
- Get revenue for order id using loops. For each item subtotal can be computed by multiplying quantity (4th field) with price (6th field).
- Path: /data/retail_db/order_items/part-00000
- Get count of complete orders
- Path: /data/retail_db/orders/part-00000
- Get count of complete/closed orders that are placed in 2013 August
myFilter with invocations
Get revenue for order id using Map Reduce
Exercises
- Get revenue for order id using Map Reduce. For each item subtotal can be computed by multiplying quantity (4th field) with price (6th field).
- Path: /data/retail_db/order_items/part-00000
- Get count of complete orders
- Path: /data/retail_db/orders/part-00000
- Get count of complete/closed orders that are placed in 2013 August