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
| Modifier and Type | Field and Description |
|---|---|
protected F |
function |
protected org.apache.flink.api.common.typeutils.TypeSerializer<N> |
namespaceSerializer |
| Modifier | Constructor and Description |
|---|---|
protected |
StateReaderOperator(F function,
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer) |
| Modifier and Type | Method and Description |
|---|---|
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 org.apache.flink.util.CloseableIterator<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 org.apache.flink.util.CloseableIterator<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 in interface org.apache.flink.streaming.api.operators.KeyContextpublic final Object getCurrentKey()
getCurrentKey in interface 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–2021 The Apache Software Foundation. All rights reserved.