public class MLEnvironment extends Object
Both MLEnvironment ID and MLEnvironment can only be retrieved from MLEnvironmentFactory.
Constructor and Description |
---|
MLEnvironment()
Construct with null that the class can load the environment in the `get` method.
|
MLEnvironment(ExecutionEnvironment batchEnv,
BatchTableEnvironment batchTableEnv)
Construct with the batch environment and the the batch table environment given by user.
|
MLEnvironment(ExecutionEnvironment batchEnv,
BatchTableEnvironment batchTableEnv,
StreamExecutionEnvironment streamEnv,
StreamTableEnvironment streamTableEnv)
Construct with env given by user.
|
MLEnvironment(StreamExecutionEnvironment streamEnv,
StreamTableEnvironment streamTableEnv)
Construct with the stream environment and the the stream table environment given by user.
|
Modifier and Type | Method and Description |
---|---|
BatchTableEnvironment |
getBatchTableEnvironment()
Get the BatchTableEnvironment.
|
ExecutionEnvironment |
getExecutionEnvironment()
Get the ExecutionEnvironment.
|
StreamExecutionEnvironment |
getStreamExecutionEnvironment()
Get the StreamExecutionEnvironment.
|
StreamTableEnvironment |
getStreamTableEnvironment()
Get the StreamTableEnvironment.
|
public MLEnvironment()
public MLEnvironment(ExecutionEnvironment batchEnv, BatchTableEnvironment batchTableEnv)
The env can be null which will be loaded in the `get` method.
batchEnv
- the ExecutionEnvironmentbatchTableEnv
- the BatchTableEnvironmentpublic MLEnvironment(StreamExecutionEnvironment streamEnv, StreamTableEnvironment streamTableEnv)
The env can be null which will be loaded in the `get` method.
streamEnv
- the StreamExecutionEnvironmentstreamTableEnv
- the StreamTableEnvironmentpublic MLEnvironment(ExecutionEnvironment batchEnv, BatchTableEnvironment batchTableEnv, StreamExecutionEnvironment streamEnv, StreamTableEnvironment streamTableEnv)
The env can be null which will be loaded in the `get` method.
batchEnv
- the ExecutionEnvironmentbatchTableEnv
- the BatchTableEnvironmentstreamEnv
- the StreamExecutionEnvironmentstreamTableEnv
- the StreamTableEnvironmentpublic ExecutionEnvironment getExecutionEnvironment()
ExecutionEnvironment
public StreamExecutionEnvironment getStreamExecutionEnvironment()
StreamExecutionEnvironment
public BatchTableEnvironment getBatchTableEnvironment()
BatchTableEnvironment
public StreamTableEnvironment getStreamTableEnvironment()
StreamTableEnvironment
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.