Class PrioritizedOperatorSubtaskState.Builder
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.PrioritizedOperatorSubtaskState.Builder
-
- Enclosing class:
- PrioritizedOperatorSubtaskState
@Internal public static class PrioritizedOperatorSubtaskState.Builder extends Object
A builder for PrioritizedOperatorSubtaskState.
-
-
Constructor Summary
Constructors Constructor Description Builder(OperatorSubtaskState jobManagerState, List<OperatorSubtaskState> alternativesByPriority)Builder(OperatorSubtaskState jobManagerState, List<OperatorSubtaskState> alternativesByPriority, Long restoredCheckpointId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrioritizedOperatorSubtaskStatebuild()protected <T extends StateObject>
List<StateObjectCollection<T>>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.
-
-
-
Constructor Detail
-
Builder
public Builder(@Nonnull OperatorSubtaskState jobManagerState, @Nonnull List<OperatorSubtaskState> alternativesByPriority)
-
Builder
public Builder(@Nonnull OperatorSubtaskState jobManagerState, @Nonnull List<OperatorSubtaskState> alternativesByPriority, @Nullable Long restoredCheckpointId)
-
-
Method Detail
-
build
public PrioritizedOperatorSubtaskState build()
-
resolvePrioritizedAlternatives
protected <T extends StateObject> List<StateObjectCollection<T>> 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. from a task-local source.
-
-