Class KeyedStateReaderOperator<KEY,OUT>
java.lang.Object
org.apache.flink.state.api.input.operator.StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>
org.apache.flink.state.api.input.operator.KeyedStateReaderOperator<KEY,OUT>
- Type Parameters:
KEY- The key type read from the state backend.OUT- The output type of the function.
- All Implemented Interfaces:
Serializable,AutoCloseable,org.apache.flink.streaming.api.operators.KeyContext
@Internal
public class KeyedStateReaderOperator<KEY,OUT>
extends StateReaderOperator<KeyedStateReaderFunction<KEY,OUT>,KEY,org.apache.flink.runtime.state.VoidNamespace,OUT>
A
StateReaderOperator for executing a KeyedStateReaderFunction.- See Also:
-
Field Summary
Fields inherited from class org.apache.flink.state.api.input.operator.StateReaderOperator
function, namespaceSerializer -
Constructor Summary
ConstructorsConstructorDescriptionKeyedStateReaderOperator(KeyedStateReaderFunction<KEY, OUT> function, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.util.CloseableIterator<org.apache.flink.api.java.tuple.Tuple2<KEY,org.apache.flink.runtime.state.VoidNamespace>> voidopen()voidprocessElement(KEY key, org.apache.flink.runtime.state.VoidNamespace namespace, org.apache.flink.util.Collector<OUT> out) Methods inherited from class org.apache.flink.state.api.input.operator.StateReaderOperator
close, getCurrentKey, getInternalTimerService, getKeyedStateBackend, getKeyType, getSerializerFactory, setCurrentKey, setup
-
Constructor Details
-
KeyedStateReaderOperator
public KeyedStateReaderOperator(KeyedStateReaderFunction<KEY, OUT> function, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType)
-
-
Method Details
-
open
- Overrides:
openin classStateReaderOperator<KeyedStateReaderFunction<KEY,OUT>, KEY, org.apache.flink.runtime.state.VoidNamespace, OUT> - Throws:
Exception
-
processElement
public void processElement(KEY key, org.apache.flink.runtime.state.VoidNamespace namespace, org.apache.flink.util.Collector<OUT> out) throws Exception - Specified by:
processElementin classStateReaderOperator<KeyedStateReaderFunction<KEY,OUT>, KEY, org.apache.flink.runtime.state.VoidNamespace, OUT> - Throws:
Exception
-
getKeysAndNamespaces
public org.apache.flink.util.CloseableIterator<org.apache.flink.api.java.tuple.Tuple2<KEY,org.apache.flink.runtime.state.VoidNamespace>> getKeysAndNamespaces(SavepointRuntimeContext ctx) throws Exception - Specified by:
getKeysAndNamespacesin classStateReaderOperator<KeyedStateReaderFunction<KEY,OUT>, KEY, org.apache.flink.runtime.state.VoidNamespace, OUT> - Throws:
Exception
-