public class PythonConfigUtil extends Object
StreamExecutionEnvironment configuration and merged configuration
with environment settings.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
KEYED_STREAM_VALUE_OPERATOR_NAME |
static String |
STREAM_KEY_BY_MAP_OPERATOR_NAME |
static String |
STREAM_PARTITION_CUSTOM_MAP_OPERATOR_NAME |
| 构造器和说明 |
|---|
PythonConfigUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.flink.streaming.api.graph.StreamGraph |
generateStreamGraphWithDependencies(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env,
boolean clearTransformations)
Generate a
StreamGraph for transformations maintained by current StreamExecutionEnvironment, and reset the merged env configurations with dependencies to
every OneInputPythonFunctionOperator. |
static org.apache.flink.configuration.Configuration |
getEnvConfigWithDependencies(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
A static method to get the
StreamExecutionEnvironment configuration merged with
python dependency management configurations. |
static org.apache.flink.configuration.Configuration |
getEnvironmentConfig(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
Get the private method
StreamExecutionEnvironment.getConfiguration() by reflection
recursively. |
public static final String KEYED_STREAM_VALUE_OPERATOR_NAME
public static final String STREAM_KEY_BY_MAP_OPERATOR_NAME
public static org.apache.flink.configuration.Configuration getEnvConfigWithDependencies(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
throws InvocationTargetException,
IllegalAccessException,
NoSuchMethodException
StreamExecutionEnvironment configuration merged with
python dependency management configurations.public static org.apache.flink.configuration.Configuration getEnvironmentConfig(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env)
throws InvocationTargetException,
IllegalAccessException,
NoSuchMethodException
StreamExecutionEnvironment.getConfiguration() by reflection
recursively. Then access the method to get the configuration of the given
StreamExecutionEnvironment.public static org.apache.flink.streaming.api.graph.StreamGraph generateStreamGraphWithDependencies(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env,
boolean clearTransformations)
throws IllegalAccessException,
NoSuchMethodException,
InvocationTargetException,
NoSuchFieldException
StreamGraph for transformations maintained by current StreamExecutionEnvironment, and reset the merged env configurations with dependencies to
every OneInputPythonFunctionOperator. It is an idempotent operation that can be call
multiple times. Remember that only when need to execute the StreamGraph can we set the
clearTransformations to be True.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.