Class EnvironmentSettings.Builder
- Enclosing class:
- EnvironmentSettings
EnvironmentSettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns an immutable instance ofEnvironmentSettings.Sets that the components should work in a batch mode.Sets that the components should work in a streaming mode.withBuiltInCatalogName(String builtInCatalogName) Specifies the name of the initial catalog to be created when instantiating aTableEnvironment.withBuiltInDatabaseName(String builtInDatabaseName) Specifies the name of the default database in the initial catalog to be created when instantiating aTableEnvironment.withCatalogStore(CatalogStore catalogStore) 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.withConfiguration(Configuration configuration) Add extra configuration toEnvironmentSettings.withSecretStore(SecretStore secretStore) Specifies theSecretStoreto be used for managing secrets in theTableEnvironment.withSqlFactory(SqlFactory sqlFactory) Provides a way to customize the process of serializing Table API to a SQL string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inBatchMode
Sets that the components should work in a batch mode. Streaming mode by default. -
inStreamingMode
Sets that the components should work in a streaming mode. Enabled by default. -
withBuiltInCatalogName
Specifies the name of the initial catalog to be created when instantiating aTableEnvironment.This catalog is an in-memory catalog that will be used to store all temporary objects (e.g. from
TableEnvironment.createTemporaryView(String, Table)orTableEnvironment.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(). -
withBuiltInDatabaseName
Specifies the name of the default database in the initial catalog to be created when instantiating aTableEnvironment.This database is an in-memory database that will be used to store all temporary objects (e.g. from
TableEnvironment.createTemporaryView(String, Table)orTableEnvironment.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(). -
withConfiguration
Add extra configuration toEnvironmentSettings. -
withClassLoader
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.By default, this is configured using
Thread.currentThread().getContextClassLoader().Modify the
ClassLoaderonly if you know what you're doing. -
withCatalogStore
-
withSqlFactory
Provides a way to customize the process of serializing Table API to a SQL string. This is useful, for example, for customizing the serialization of inline functions. -
withSecretStore
Specifies theSecretStoreto be used for managing secrets in theTableEnvironment.The secret store allows for secure storage and retrieval of sensitive configuration data such as credentials, tokens, and passwords.
- Parameters:
secretStore- the secret store instance to use- Returns:
- this builder
-
build
Returns an immutable instance ofEnvironmentSettings.
-