Class BundleCheckpointHandlers.StateAndTimerBundleCheckpointHandler<T>
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.control.BundleCheckpointHandlers.StateAndTimerBundleCheckpointHandler<T>
-
- All Implemented Interfaces:
BundleCheckpointHandler
- Enclosing class:
- BundleCheckpointHandlers
public static class BundleCheckpointHandlers.StateAndTimerBundleCheckpointHandler<T> extends java.lang.Object implements BundleCheckpointHandler
ABundleCheckpointHandlerwhich usesTimerInternals.TimerDataandValueStateto rescheduleBeamFnApi.DelayedBundleApplication.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSDF_PREFIX
-
Constructor Summary
Constructors Constructor Description StateAndTimerBundleCheckpointHandler(org.apache.beam.runners.core.TimerInternalsFactory<T> timerInternalsFactory, org.apache.beam.runners.core.StateInternalsFactory<T> stateInternalsFactory, org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.WindowedValue<T>> residualCoder, org.apache.beam.sdk.coders.Coder windowCoder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisSdfTimer(java.lang.String timerId)A helper function to help check whether the given timer is the timer which is set for reschedulingBeamFnApi.DelayedBundleApplication.voidonCheckpoint(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleResponse response)
-
-
-
Field Detail
-
SDF_PREFIX
public static final java.lang.String SDF_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StateAndTimerBundleCheckpointHandler
public StateAndTimerBundleCheckpointHandler(org.apache.beam.runners.core.TimerInternalsFactory<T> timerInternalsFactory, org.apache.beam.runners.core.StateInternalsFactory<T> stateInternalsFactory, org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.WindowedValue<T>> residualCoder, org.apache.beam.sdk.coders.Coder windowCoder)
-
-
Method Detail
-
isSdfTimer
public static boolean isSdfTimer(java.lang.String timerId)
A helper function to help check whether the given timer is the timer which is set for reschedulingBeamFnApi.DelayedBundleApplication.
-
onCheckpoint
public void onCheckpoint(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleResponse response)
- Specified by:
onCheckpointin interfaceBundleCheckpointHandler
-
-