CGI Interview Question

explain the difference between partitionbykey and groupbykey