The partitioner is designed for determining how to distribute the input data among computing workers of a Bulk Synchronous Parallel processing. Remember, this is not related with output collection, unlike Map/Reduce's partition function.
Input data-partitioning works as following sequence:
BSPJob job = new BSPJob(conf); ... job.setPartitioner(HashPartitioner.class); ... |