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()
Deprecated.
The old planner has been removed in Flink 1.14. Since there is only one
planner left (previously called the 'blink' planner), this setting is obsolete and
will be removed in future versions.
|
EnvironmentSettings.Builder |
useBlinkPlanner()
Deprecated.
The old planner has been removed in Flink 1.14. Since there is only one
planner left (previously called the 'blink' planner), this setting is obsolete and
will be removed in future versions.
|
EnvironmentSettings.Builder |
useOldPlanner()
Deprecated.
The old planner has been removed in Flink 1.14. Since there is only one
planner left (previously called the 'blink' planner), this setting will throw an
exception.
|
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 . |
@Deprecated public EnvironmentSettings.Builder useOldPlanner()
@Deprecated public EnvironmentSettings.Builder useBlinkPlanner()
This is the default behavior.
@Deprecated 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 is an in-memory catalog that will be used to store all temporary objects
(e.g. from TableEnvironment.createTemporaryView(String, Table)
or TableEnvironment.createTemporarySystemFunction(String, UserDefinedFunction)
) that cannot
be persisted because they have no serializable representation.
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
.
This database is an in-memory database that will be used to store all temporary
objects (e.g. from TableEnvironment.createTemporaryView(String, Table)
or TableEnvironment.createTemporarySystemFunction(String, UserDefinedFunction)
) that cannot
be persisted because they have no serializable representation.
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–2023 The Apache Software Foundation. All rights reserved.