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(org.apache.flink.table.catalog.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(org.apache.flink.configuration.Configuration configuration) Add extra configuration toEnvironmentSettings.
-
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
public EnvironmentSettings.Builder withConfiguration(org.apache.flink.configuration.Configuration configuration) 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
public EnvironmentSettings.Builder withCatalogStore(org.apache.flink.table.catalog.CatalogStore catalogStore) -
build
Returns an immutable instance ofEnvironmentSettings.
-