K - The type of keys used for the timers and the registry.@Internal public class InternalTimeServiceManager<K> extends Object
AbstractStreamOperator. Right now, this is only a
timer services.
NOTE: These services are only available to keyed operators.| Modifier and Type | Method and Description |
|---|---|
void |
advanceWatermark(Watermark watermark) |
<N> InternalTimerService<N> |
getInternalTimerService(String name,
TimerSerializer<K,N> timerSerializer,
Triggerable<K,N> triggerable) |
int |
numEventTimeTimers() |
int |
numProcessingTimeTimers() |
void |
restoreStateForKeyGroup(InputStream stream,
int keyGroupIdx,
ClassLoader userCodeClassLoader) |
void |
snapshotStateForKeyGroup(org.apache.flink.core.memory.DataOutputView stream,
int keyGroupIdx) |
public <N> InternalTimerService<N> getInternalTimerService(String name, TimerSerializer<K,N> timerSerializer, Triggerable<K,N> triggerable)
public void advanceWatermark(Watermark watermark) throws Exception
Exceptionpublic void snapshotStateForKeyGroup(org.apache.flink.core.memory.DataOutputView stream,
int keyGroupIdx)
throws IOException
IOExceptionpublic void restoreStateForKeyGroup(InputStream stream, int keyGroupIdx, ClassLoader userCodeClassLoader) throws IOException
IOException@VisibleForTesting public int numProcessingTimeTimers()
@VisibleForTesting public int numEventTimeTimers()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.