Class InMemoryTimerInternalsFactory<K>
- java.lang.Object
-
- org.apache.nemo.compiler.frontend.beam.transform.InMemoryTimerInternalsFactory<K>
-
- Type Parameters:
K
- key type
- All Implemented Interfaces:
org.apache.beam.runners.core.TimerInternalsFactory<K>
public final class InMemoryTimerInternalsFactory<K> extends java.lang.Object implements org.apache.beam.runners.core.TimerInternalsFactory<K>
InMemoryTimerInternalsFactory.
-
-
Constructor Summary
Constructors Constructor Description InMemoryTimerInternalsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<K,org.apache.beam.runners.core.InMemoryTimerInternals>
getTimerInternalsMap()
Accessor for timerInternalsMap.boolean
isEmpty(org.apache.beam.runners.core.InMemoryTimerInternals timerInternal)
Helper method to check iftimerInternals
doesn't have any timers left.org.apache.beam.runners.core.TimerInternals.TimerData
pollTimer(org.apache.beam.runners.core.InMemoryTimerInternals timerInternal, org.apache.beam.sdk.state.TimeDomain timeDomain)
Remove the next eligible timer intimeDomain
.org.apache.beam.runners.core.TimerInternals
timerInternalsForKey(K key)
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
timerInternalsForKey
public org.apache.beam.runners.core.TimerInternals timerInternalsForKey(K key)
- Specified by:
timerInternalsForKey
in interfaceorg.apache.beam.runners.core.TimerInternalsFactory<K>
-
pollTimer
public org.apache.beam.runners.core.TimerInternals.TimerData pollTimer(org.apache.beam.runners.core.InMemoryTimerInternals timerInternal, org.apache.beam.sdk.state.TimeDomain timeDomain)
Remove the next eligible timer intimeDomain
.- Parameters:
timerInternal
- the timer internals.timeDomain
- the time domain.- Returns:
- the timer data.
-
getTimerInternalsMap
public java.util.Map<K,org.apache.beam.runners.core.InMemoryTimerInternals> getTimerInternalsMap()
Accessor for timerInternalsMap.- Returns:
- the timer internals map.
-
isEmpty
public boolean isEmpty(org.apache.beam.runners.core.InMemoryTimerInternals timerInternal)
Helper method to check iftimerInternals
doesn't have any timers left.- Parameters:
timerInternal
- the in-memory timer internals.- Returns:
- whether it is empty or not.
-
-