public class MLEnvironment extends Object
Both MLEnvironment ID and MLEnvironment can only be retrieved from MLEnvironmentFactory.
ExecutionEnvironment,
StreamExecutionEnvironment,
BatchTableEnvironment,
StreamTableEnvironment| 构造器和说明 |
|---|
MLEnvironment()
Construct with null that the class can load the environment in the `get` method.
|
MLEnvironment(org.apache.flink.api.java.ExecutionEnvironment batchEnv,
org.apache.flink.table.api.bridge.java.BatchTableEnvironment batchTableEnv)
Construct with the batch environment and the the batch table environment given by user.
|
MLEnvironment(org.apache.flink.api.java.ExecutionEnvironment batchEnv,
org.apache.flink.table.api.bridge.java.BatchTableEnvironment batchTableEnv,
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment streamEnv,
org.apache.flink.table.api.bridge.java.StreamTableEnvironment streamTableEnv)
Construct with env given by user.
|
MLEnvironment(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment streamEnv,
org.apache.flink.table.api.bridge.java.StreamTableEnvironment streamTableEnv)
Construct with the stream environment and the the stream table environment given by user.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.table.api.bridge.java.BatchTableEnvironment |
getBatchTableEnvironment()
Get the BatchTableEnvironment. if the BatchTableEnvironment has not been set, it initial the
BatchTableEnvironment with default Configuration.
|
org.apache.flink.api.java.ExecutionEnvironment |
getExecutionEnvironment()
Get the ExecutionEnvironment. if the ExecutionEnvironment has not been set, it initial the
ExecutionEnvironment with default Configuration.
|
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment |
getStreamExecutionEnvironment()
Get the StreamExecutionEnvironment. if the StreamExecutionEnvironment has not been set, it
initial the StreamExecutionEnvironment with default Configuration.
|
org.apache.flink.table.api.bridge.java.StreamTableEnvironment |
getStreamTableEnvironment()
Get the StreamTableEnvironment. if the StreamTableEnvironment has not been set, it initial
the StreamTableEnvironment with default Configuration.
|
public MLEnvironment()
public MLEnvironment(org.apache.flink.api.java.ExecutionEnvironment batchEnv,
org.apache.flink.table.api.bridge.java.BatchTableEnvironment batchTableEnv)
The env can be null which will be loaded in the `get` method.
batchEnv - the ExecutionEnvironmentbatchTableEnv - the BatchTableEnvironmentpublic MLEnvironment(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment streamEnv,
org.apache.flink.table.api.bridge.java.StreamTableEnvironment streamTableEnv)
The env can be null which will be loaded in the `get` method.
streamEnv - the StreamExecutionEnvironmentstreamTableEnv - the StreamTableEnvironmentpublic MLEnvironment(org.apache.flink.api.java.ExecutionEnvironment batchEnv,
org.apache.flink.table.api.bridge.java.BatchTableEnvironment batchTableEnv,
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment streamEnv,
org.apache.flink.table.api.bridge.java.StreamTableEnvironment streamTableEnv)
The env can be null which will be loaded in the `get` method.
batchEnv - the ExecutionEnvironmentbatchTableEnv - the BatchTableEnvironmentstreamEnv - the StreamExecutionEnvironmentstreamTableEnv - the StreamTableEnvironmentpublic org.apache.flink.api.java.ExecutionEnvironment getExecutionEnvironment()
ExecutionEnvironmentpublic org.apache.flink.streaming.api.environment.StreamExecutionEnvironment getStreamExecutionEnvironment()
StreamExecutionEnvironmentpublic org.apache.flink.table.api.bridge.java.BatchTableEnvironment getBatchTableEnvironment()
BatchTableEnvironmentpublic org.apache.flink.table.api.bridge.java.StreamTableEnvironment getStreamTableEnvironment()
StreamTableEnvironmentCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.