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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    set(org.apache.beam.runners.core.StateInternals stateInternals, org.apache.beam.runners.core.TimerInternals timerInternals)
     
    org.apache.beam.runners.core.StateInternals
     
    org.apache.beam.runners.core.TimerInternals
     
    org.apache.beam.runners.core.InMemoryTimerInternals
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.beam.runners.core.StepContext

    bundleFinalizer, setBacklogBytes
  • Constructor Details

    • MutableStepContext

      public MutableStepContext()
  • Method Details

    • reset

      public void reset(@Nullable Object key)
    • 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:
      stateInternals in interface org.apache.beam.runners.core.StepContext
    • timerInternals

      public org.apache.beam.runners.core.TimerInternals timerInternals()
      Specified by:
      timerInternals in interface org.apache.beam.runners.core.StepContext