public class MLEnvironment extends Object
Both MLEnvironment ID and MLEnvironment can only be retrieved from MLEnvironmentFactory.
ExecutionEnvironment,
StreamExecutionEnvironment,
BatchTableEnvironment,
StreamTableEnvironment| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.api.bridge.java.BatchTableEnvironment |
getBatchTableEnvironment()
Get the BatchTableEnvironment.
|
org.apache.flink.api.java.ExecutionEnvironment |
getExecutionEnvironment()
Get the ExecutionEnvironment.
|
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment |
getStreamExecutionEnvironment()
Get the StreamExecutionEnvironment.
|
org.apache.flink.table.api.bridge.java.StreamTableEnvironment |
getStreamTableEnvironment()
Get the StreamTableEnvironment.
|
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.