KEY - The key type read from the state backend.OUT - The output type of the function.@Internal public class KeyedStateReaderOperator<KEY,OUT> extends StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>
StateReaderOperator for executing a KeyedStateReaderFunction.function, namespaceSerializer| 构造器和说明 |
|---|
KeyedStateReaderOperator(KeyedStateReaderFunction<KEY,OUT> function,
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType) |
| 限定符和类型 | 方法和说明 |
|---|---|
Iterator<org.apache.flink.api.java.tuple.Tuple2<KEY,org.apache.flink.runtime.state.VoidNamespace>> |
getKeysAndNamespaces(SavepointRuntimeContext ctx) |
void |
open() |
void |
processElement(KEY key,
org.apache.flink.runtime.state.VoidNamespace namespace,
org.apache.flink.util.Collector<OUT> out) |
close, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyType, setCurrentKey, setuppublic KeyedStateReaderOperator(KeyedStateReaderFunction<KEY,OUT> function, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType)
public void open()
throws Exception
open 在类中 StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>Exceptionpublic void processElement(KEY key, org.apache.flink.runtime.state.VoidNamespace namespace, org.apache.flink.util.Collector<OUT> out) throws Exception
processElement 在类中 StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>Exceptionpublic Iterator<org.apache.flink.api.java.tuple.Tuple2<KEY,org.apache.flink.runtime.state.VoidNamespace>> getKeysAndNamespaces(SavepointRuntimeContext ctx) throws Exception
getKeysAndNamespaces 在类中 StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>ExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.