Class IdPartitioner

java.lang.Object
org.apache.flink.python.legacy.IdPartitioner
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.Partitioner<Integer>

@Internal public class IdPartitioner extends Object implements org.apache.flink.api.common.functions.Partitioner<Integer>
Partitioner that partitions by id.
See Also:
  • Constructor Details

    • IdPartitioner

      public IdPartitioner()
  • Method Details

    • partition

      public int partition(Integer key, int numPartitions)
      Specified by:
      partition in interface org.apache.flink.api.common.functions.Partitioner<Integer>