Interface PartitionFunction

    • Method Detail

      • getPartition

        int getPartition​(Object value)
        Method to compute and return partition id for the given value.
        Parameters:
        value - Value for which to determine the partition id.
        Returns:
        partition id for the value.
      • getName

        String getName()
        Returns the name of the partition function.
        Returns:
        Name of the partition function.
      • getNumPartitions

        int getNumPartitions()
        Returns the total number of possible partitions.
        Returns:
        Number of possible partitions.
      • getFunctionConfig

        @Nullable
        default Map<String,​String> getFunctionConfig()