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| Constructor and Description |
|---|
KeyedStateReaderOperator(KeyedStateReaderFunction<KEY,OUT> function,
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.util.CloseableIterator<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 in class 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 in class StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>Exceptionpublic org.apache.flink.util.CloseableIterator<org.apache.flink.api.java.tuple.Tuple2<KEY,org.apache.flink.runtime.state.VoidNamespace>> getKeysAndNamespaces(SavepointRuntimeContext ctx) throws Exception
getKeysAndNamespaces in class StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>ExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.