Complete map-reduce sample