public interface

MappingCalculator

org.apache.helix.controller.rebalancer.internal.MappingCalculator
Known Indirect Subclasses

Class Overview

Extends Rebalancer functionality by converting an IdealState to a ResourceAssignment.

WARNING: this is an internal interface and is subject to change across releases

Summary

Public Methods
abstract ResourceAssignment computeBestPossiblePartitionState(ClusterDataCache cache, IdealState idealState, Resource resource, CurrentStateOutput currentStateOutput)
Given an ideal state for a resource and the liveness of instances, compute the best possible state assignment for each partition's replicas.

Public Methods

public abstract ResourceAssignment computeBestPossiblePartitionState (ClusterDataCache cache, IdealState idealState, Resource resource, CurrentStateOutput currentStateOutput)

Given an ideal state for a resource and the liveness of instances, compute the best possible state assignment for each partition's replicas.

Parameters
currentStateOutput Provides the current state and pending state transitions for all partitions