T - cluster idpublic class ExecutionContext<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ExecutionContext.EnvironmentInstance
ExecutionEnvironment and StreamExecutionEnvironment cannot be reused
across multiple queries because they are stateful. |
| Constructor and Description |
|---|
ExecutionContext(Environment defaultEnvironment,
SessionContext sessionContext,
List<URL> dependencies,
org.apache.flink.configuration.Configuration flinkConfig,
org.apache.commons.cli.Options commandLineOptions,
List<org.apache.flink.client.cli.CustomCommandLine<?>> availableCommandLines) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.client.deployment.ClusterDescriptor<T> |
createClusterDescriptor() |
ExecutionContext.EnvironmentInstance |
createEnvironmentInstance() |
Map<String,org.apache.flink.table.catalog.Catalog> |
getCatalogs() |
ClassLoader |
getClassLoader() |
T |
getClusterId() |
org.apache.flink.client.deployment.ClusterSpecification |
getClusterSpec() |
Environment |
getMergedEnvironment() |
SessionContext |
getSessionContext() |
Map<String,org.apache.flink.table.sinks.TableSink<?>> |
getTableSinks() |
Map<String,org.apache.flink.table.sources.TableSource<?>> |
getTableSources() |
<R> R |
wrapClassLoader(java.util.function.Supplier<R> supplier)
Executes the given supplier using the execution context's classloader as thread classloader.
|
public ExecutionContext(Environment defaultEnvironment, SessionContext sessionContext, List<URL> dependencies, org.apache.flink.configuration.Configuration flinkConfig, org.apache.commons.cli.Options commandLineOptions, List<org.apache.flink.client.cli.CustomCommandLine<?>> availableCommandLines)
public SessionContext getSessionContext()
public ClassLoader getClassLoader()
public Environment getMergedEnvironment()
public org.apache.flink.client.deployment.ClusterSpecification getClusterSpec()
public T getClusterId()
public org.apache.flink.client.deployment.ClusterDescriptor<T> createClusterDescriptor() throws Exception
Exceptionpublic ExecutionContext.EnvironmentInstance createEnvironmentInstance()
public <R> R wrapClassLoader(java.util.function.Supplier<R> supplier)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.