Class PythonOperatorUtils
java.lang.Object
org.apache.flink.streaming.api.utils.PythonOperatorUtils
Utilities used by Python operators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K> booleaninBatchExecutionMode(org.apache.flink.runtime.state.KeyedStateBackend<K> stateBackend) static <K> voidsetCurrentKeyForStreaming(org.apache.flink.runtime.state.KeyedStateBackend<K> stateBackend, K currentKey) Set the current key for streaming operator.static <K,N> void setCurrentKeyForTimerService(org.apache.flink.streaming.api.operators.InternalTimerService<N> internalTimerService, K currentKey) Set the current key for the timer service.
-
Constructor Details
-
PythonOperatorUtils
public PythonOperatorUtils()
-
-
Method Details
-
setCurrentKeyForStreaming
public static <K> void setCurrentKeyForStreaming(org.apache.flink.runtime.state.KeyedStateBackend<K> stateBackend, K currentKey) Set the current key for streaming operator. -
setCurrentKeyForTimerService
public static <K,N> void setCurrentKeyForTimerService(org.apache.flink.streaming.api.operators.InternalTimerService<N> internalTimerService, K currentKey) throws Exception Set the current key for the timer service.- Throws:
Exception
-
inBatchExecutionMode
public static <K> boolean inBatchExecutionMode(org.apache.flink.runtime.state.KeyedStateBackend<K> stateBackend)
-