Class RoundRobinOperatorStateRepartitioner
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.RoundRobinOperatorStateRepartitioner
-
- All Implemented Interfaces:
OperatorStateRepartitioner<OperatorStateHandle>
@Internal public class RoundRobinOperatorStateRepartitioner extends Object implements OperatorStateRepartitioner<OperatorStateHandle>
Current default implementation ofOperatorStateRepartitioner
that redistributes state in round robin fashion.
-
-
Field Summary
Fields Modifier and Type Field Description static OperatorStateRepartitioner<OperatorStateHandle>
INSTANCE
-
Constructor Summary
Constructors Constructor Description RoundRobinOperatorStateRepartitioner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<List<OperatorStateHandle>>
repartitionState(List<List<OperatorStateHandle>> previousParallelSubtaskStates, int oldParallelism, int newParallelism)
-
-
-
Field Detail
-
INSTANCE
public static final OperatorStateRepartitioner<OperatorStateHandle> INSTANCE
-
-
Method Detail
-
repartitionState
public List<List<OperatorStateHandle>> repartitionState(List<List<OperatorStateHandle>> previousParallelSubtaskStates, int oldParallelism, int newParallelism)
- Specified by:
repartitionState
in interfaceOperatorStateRepartitioner<OperatorStateHandle>
- Parameters:
previousParallelSubtaskStates
- List with one entry of state handles per parallel subtask of an operator, as they have been checkpointed.oldParallelism
- The parallelism before we start redistribution.newParallelism
- The parallelism that we consider for the state redistribution. Determines the size of the returned list.- Returns:
- List with one entry per parallel subtask. Each subtask receives now one collection of states that build of the new total state for this subtask.
-
-