@PublicEvolving 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 |
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 . |
EnvironmentSettings.Builder |
withCatalogStore(CatalogStore catalogStore) |
EnvironmentSettings.Builder |
withClassLoader(ClassLoader classLoader)
Specifies the classloader to use in the planner for operations related to code
generation, UDF loading, operations requiring reflections on user classes, discovery of
factories.
|
EnvironmentSettings.Builder |
withConfiguration(Configuration configuration)
Add extra configuration to
EnvironmentSettings . |
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: TableConfigOptions.TABLE_DATABASE_NAME
.defaultValue()
.
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: TableConfigOptions.TABLE_DATABASE_NAME
.defaultValue()
.
public EnvironmentSettings.Builder withConfiguration(Configuration configuration)
EnvironmentSettings
.public EnvironmentSettings.Builder withClassLoader(ClassLoader classLoader)
By default, this is configured using Thread.currentThread().getContextClassLoader()
.
Modify the ClassLoader
only if you know what you're doing.
public EnvironmentSettings.Builder withCatalogStore(CatalogStore catalogStore)
public EnvironmentSettings build()
EnvironmentSettings
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.