Interface Partitioner<T>

    • Method Detail

      • getPartition

        int getPartition​(T key)
        Retrieves the partition id given a key.
        Parameters:
        key -
        Returns:
      • numPartitions

        int numPartitions()
        Returns the number of partitions assumed by this partitioner.