collapse partitioner definitions