Interface Partitioner<K2,​V2,​K3,​V3>

  • All Superinterfaces:
    Reader<K2,​V2>
    All Known Implementing Classes:
    ItemPartitioner, SimplePartitioner

    public interface Partitioner<K2,​V2,​K3,​V3>
    extends Reader<K2,​V2>
    The job of the partitioner is to take output from the mapper and partition it by key. Values with matching keys are gathered into collections so that a reducer can reduce all items with a matching key. An instance of a partitioner may create tasks for each key so that reducers can be run in parallel either locally or across a cluster.
    • Method Detail

      • partition

        void partition()