@Internal public static class PrioritizedOperatorSubtaskState.Builder extends Object
Constructor and Description |
---|
Builder(OperatorSubtaskState jobManagerState,
List<OperatorSubtaskState> alternativesByPriority) |
Builder(OperatorSubtaskState jobManagerState,
List<OperatorSubtaskState> alternativesByPriority,
Long restoredCheckpointId) |
Modifier and Type | Method and Description |
---|---|
PrioritizedOperatorSubtaskState |
build() |
protected <T extends StateObject> |
resolvePrioritizedAlternatives(StateObjectCollection<T> jobManagerState,
List<StateObjectCollection<T>> alternativesByPriority,
java.util.function.BiFunction<T,T,Boolean> approveFun)
This helper method resolves the dependencies between the ground truth of the operator
state obtained from the job manager and potential alternatives for recovery, e.g.
|
public Builder(@Nonnull OperatorSubtaskState jobManagerState, @Nonnull List<OperatorSubtaskState> alternativesByPriority)
public Builder(@Nonnull OperatorSubtaskState jobManagerState, @Nonnull List<OperatorSubtaskState> alternativesByPriority, @Nullable Long restoredCheckpointId)
public PrioritizedOperatorSubtaskState build()
protected <T extends StateObject> List<StateObjectCollection<T>> resolvePrioritizedAlternatives(StateObjectCollection<T> jobManagerState, List<StateObjectCollection<T>> alternativesByPriority, java.util.function.BiFunction<T,T,Boolean> approveFun)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.