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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
LOG |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
advanceWatermark(Watermark watermark) |
<N> InternalTimerService<N> |
getInternalTimerService(String name,
TimerSerializer<K,N> timerSerializer,
Triggerable<K,N> triggerable) |
<N> InternalTimerService<N> |
getInternalTimerService(String name,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
Triggerable<K,N> triggerable,
org.apache.flink.runtime.state.KeyedStateBackend<K> keyedStateBackend) |
int |
numEventTimeTimers() |
int |
numProcessingTimeTimers() |
void |
restoreStateForKeyGroup(InputStream stream,
int keyGroupIdx,
ClassLoader userCodeClassLoader) |
void |
snapshotState(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend,
org.apache.flink.runtime.state.StateSnapshotContext context,
String operatorName) |
void |
snapshotStateForKeyGroup(org.apache.flink.core.memory.DataOutputView stream,
int keyGroupIdx) |
public <N> InternalTimerService<N> getInternalTimerService(String name, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, Triggerable<K,N> triggerable, org.apache.flink.runtime.state.KeyedStateBackend<K> keyedStateBackend)
public <N> InternalTimerService<N> getInternalTimerService(String name, TimerSerializer<K,N> timerSerializer, Triggerable<K,N> triggerable)
public void snapshotState(org.apache.flink.runtime.state.KeyedStateBackend<?> keyedStateBackend,
org.apache.flink.runtime.state.StateSnapshotContext context,
String operatorName)
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–2021 The Apache Software Foundation. All rights reserved.