Takes the different
OperatorSubtaskState created by calling
#snapshot(long,long)on different instances of
AbstractStreamOperatorTestHarness (each one representing one subtask)
and repacks them into a single
OperatorSubtaskState so that the parallelism of the test
can change arbitrarily (i.e. be able to scale both up and down).
After repacking the partial states, use
#initializeState(OperatorSubtaskState) to initialize
a new instance with the resulting state. Bear in mind that for parallelism greater than one, you
have to use the constructor
#AbstractStreamOperatorTestHarness(StreamOperator,int,int,int).
NOTE: each of the
handles in the argument list is assumed to be from a single task of a single
operator (i.e. chain length of one).
For an example of how to use it, have a look at
AbstractStreamOperatorTest#testStateAndTimerStateShufflingScalingDown().