Class StatefulTaskRunner.MutableStepContext
java.lang.Object
org.apache.beam.runners.spark.structuredstreaming.translation.batch.StatefulTaskRunner.MutableStepContext
- All Implemented Interfaces:
org.apache.beam.runners.core.StepContext
- Enclosing class:
StatefulTaskRunner<InT,T>
@Internal
public static class StatefulTaskRunner.MutableStepContext
extends Object
implements org.apache.beam.runners.core.StepContext
A mutable step context that can rebind state and timers per key.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidset(org.apache.beam.runners.core.StateInternals stateInternals, org.apache.beam.runners.core.TimerInternals timerInternals) org.apache.beam.runners.core.StateInternalsorg.apache.beam.runners.core.TimerInternalsorg.apache.beam.runners.core.InMemoryTimerInternalstimers()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.runners.core.StepContext
bundleFinalizer, setBacklogBytes
-
Constructor Details
-
MutableStepContext
public MutableStepContext()
-
-
Method Details
-
reset
-
set
public void set(org.apache.beam.runners.core.StateInternals stateInternals, org.apache.beam.runners.core.TimerInternals timerInternals) -
timers
public org.apache.beam.runners.core.InMemoryTimerInternals timers() -
stateInternals
public org.apache.beam.runners.core.StateInternals stateInternals()- Specified by:
stateInternalsin interfaceorg.apache.beam.runners.core.StepContext
-
timerInternals
public org.apache.beam.runners.core.TimerInternals timerInternals()- Specified by:
timerInternalsin interfaceorg.apache.beam.runners.core.StepContext
-