F - The type of the user function.KEY - The key type.N - The namespace type.OUT - The output type.@Internal public abstract class StateReaderOperator<F extends org.apache.flink.api.common.functions.Function,KEY,N,OUT> extends Object implements org.apache.flink.streaming.api.operators.KeyContext, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected F |
function |
protected org.apache.flink.api.common.typeutils.TypeSerializer<N> |
namespaceSerializer |
| 限定符 | 构造器和说明 |
|---|---|
protected |
StateReaderOperator(F function,
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
Object |
getCurrentKey() |
org.apache.flink.api.common.ExecutionConfig |
getExecutionConfig() |
protected org.apache.flink.streaming.api.operators.InternalTimerService<N> |
getInternalTimerService(String name) |
org.apache.flink.runtime.state.KeyedStateBackend<KEY> |
getKeyedStateBackend() |
abstract Iterator<org.apache.flink.api.java.tuple.Tuple2<KEY,N>> |
getKeysAndNamespaces(SavepointRuntimeContext ctx) |
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> |
getKeyType() |
void |
open() |
abstract void |
processElement(KEY key,
N namespace,
org.apache.flink.util.Collector<OUT> out) |
void |
setCurrentKey(Object key) |
void |
setup(org.apache.flink.api.common.ExecutionConfig executionConfig,
org.apache.flink.runtime.state.KeyedStateBackend<KEY> keyKeyedStateBackend,
org.apache.flink.streaming.api.operators.InternalTimeServiceManager<KEY> timerServiceManager,
SavepointRuntimeContext ctx) |
protected final F extends org.apache.flink.api.common.functions.Function function
protected final org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer
public abstract void processElement(KEY key, N namespace, org.apache.flink.util.Collector<OUT> out) throws Exception
Exceptionpublic abstract Iterator<org.apache.flink.api.java.tuple.Tuple2<KEY,N>> getKeysAndNamespaces(SavepointRuntimeContext ctx) throws Exception
Exceptionpublic final void setup(org.apache.flink.api.common.ExecutionConfig executionConfig,
org.apache.flink.runtime.state.KeyedStateBackend<KEY> keyKeyedStateBackend,
org.apache.flink.streaming.api.operators.InternalTimeServiceManager<KEY> timerServiceManager,
SavepointRuntimeContext ctx)
protected final org.apache.flink.streaming.api.operators.InternalTimerService<N> getInternalTimerService(String name)
public final void setCurrentKey(Object key)
setCurrentKey 在接口中 org.apache.flink.streaming.api.operators.KeyContextpublic final Object getCurrentKey()
getCurrentKey 在接口中 org.apache.flink.streaming.api.operators.KeyContextpublic final org.apache.flink.runtime.state.KeyedStateBackend<KEY> getKeyedStateBackend()
public final org.apache.flink.api.common.typeinfo.TypeInformation<KEY> getKeyType()
public final org.apache.flink.api.common.ExecutionConfig getExecutionConfig()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.