Class SimpleAssignmentStrategy.SimpleLoadCalculator

    • Constructor Detail

      • SimpleLoadCalculator

        public SimpleLoadCalculator()
    • Method Detail

      • getLoad

        public int getLoad​(int nPartition)
        Return the load for the specified partition.
        Specified by:
        getLoad in interface SimpleAssignmentStrategy.LoadCalculator
        Parameters:
        nPartition - the partition to determine the load for
        Returns:
        the load for the specified partition
      • getLoad

        public int getLoad​(PartitionSet parts)
        Return the load for the specified set of partitions.
        Specified by:
        getLoad in interface SimpleAssignmentStrategy.LoadCalculator
        Parameters:
        parts - the partition set to determine the load for
        Returns:
        the load for the specified set of partitions