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>
AStateReaderOperatorfor executing aKeyedStateReaderFunction.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.state.api.input.operator.StateReaderOperator
function, namespaceSerializer
-
-
Constructor Summary
Constructors Constructor Description KeyedStateReaderOperator(KeyedStateReaderFunction<KEY,OUT> function, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.util.CloseableIterator<org.apache.flink.api.java.tuple.Tuple2<KEY,org.apache.flink.runtime.state.VoidNamespace>>getKeysAndNamespaces(SavepointRuntimeContext ctx)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 Detail
-
KeyedStateReaderOperator
public KeyedStateReaderOperator(KeyedStateReaderFunction<KEY,OUT> function, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType)
-
-
Method Detail
-
open
public void open() throws Exception- 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
-
-