public static class EnvironmentSettings.Builder extends Object
EnvironmentSettings
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EnvironmentSettings |
build()
Returns an immutable instance of
EnvironmentSettings . |
EnvironmentSettings.Builder |
inBatchMode()
Sets that the components should work in a batch mode.
|
EnvironmentSettings.Builder |
inStreamingMode()
Sets that the components should work in a streaming mode.
|
EnvironmentSettings.Builder |
useAnyPlanner()
Does not set a planner requirement explicitly.
|
EnvironmentSettings.Builder |
useBlinkPlanner()
Sets the Blink planner as the required module.
|
EnvironmentSettings.Builder |
useOldPlanner()
Sets the old Flink planner as the required module.
|
EnvironmentSettings.Builder |
withBuiltInCatalogName(String builtInCatalogName)
Specifies the name of the initial catalog to be created when instantiating a
TableEnvironment . |
EnvironmentSettings.Builder |
withBuiltInDatabaseName(String builtInDatabaseName)
Specifies the name of the default database in the initial catalog to be created when
instantiating a
TableEnvironment . |
public EnvironmentSettings.Builder useOldPlanner()
useBlinkPlanner()
is enabled.public EnvironmentSettings.Builder useBlinkPlanner()
This is the default behavior.
public EnvironmentSettings.Builder useAnyPlanner()
A planner will be discovered automatically, if there is only one planner available.
By default, useBlinkPlanner()
is enabled.
public EnvironmentSettings.Builder inBatchMode()
public EnvironmentSettings.Builder inStreamingMode()
public EnvironmentSettings.Builder withBuiltInCatalogName(String builtInCatalogName)
TableEnvironment
. This catalog will be used to store all non-serializable objects such
as tables and functions registered via e.g. TableEnvironment#registerTableSink(String, TableSink)
or TableEnvironment.registerFunction(String, ScalarFunction)
. It will also be the initial
value for the current catalog which can be altered via TableEnvironment.useCatalog(String)
.
Default: "default_catalog".
public EnvironmentSettings.Builder withBuiltInDatabaseName(String builtInDatabaseName)
TableEnvironment
. The database will be used to store all
non-serializable objects such as tables and functions registered via e.g. TableEnvironment#registerTableSink(String, TableSink)
or TableEnvironment.registerFunction(String, ScalarFunction)
. It will also be the initial
value for the current database which can be altered via TableEnvironment.useDatabase(String)
.
Default: "default_database".
public EnvironmentSettings build()
EnvironmentSettings
.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.