Class EnvironmentSettings.Builder
- java.lang.Object
-
- org.apache.flink.table.api.EnvironmentSettings.Builder
-
- Enclosing class:
- EnvironmentSettings
@PublicEvolving public static class EnvironmentSettings.Builder extends Object
A builder forEnvironmentSettings.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvironmentSettingsbuild()Returns an immutable instance ofEnvironmentSettings.EnvironmentSettings.BuilderinBatchMode()Sets that the components should work in a batch mode.EnvironmentSettings.BuilderinStreamingMode()Sets that the components should work in a streaming mode.EnvironmentSettings.BuilderwithBuiltInCatalogName(String builtInCatalogName)Specifies the name of the initial catalog to be created when instantiating aTableEnvironment.EnvironmentSettings.BuilderwithBuiltInDatabaseName(String builtInDatabaseName)Specifies the name of the default database in the initial catalog to be created when instantiating aTableEnvironment.EnvironmentSettings.BuilderwithCatalogStore(org.apache.flink.table.catalog.CatalogStore catalogStore)EnvironmentSettings.BuilderwithClassLoader(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.BuilderwithConfiguration(org.apache.flink.configuration.Configuration configuration)Add extra configuration toEnvironmentSettings.EnvironmentSettings.BuilderwithSqlFactory(org.apache.flink.table.expressions.SqlFactory sqlFactory)Provides a way to customize the process of serializing Table API to a SQL string.
-
-
-
Method Detail
-
inBatchMode
public EnvironmentSettings.Builder inBatchMode()
Sets that the components should work in a batch mode. Streaming mode by default.
-
inStreamingMode
public EnvironmentSettings.Builder inStreamingMode()
Sets that the components should work in a streaming mode. Enabled by default.
-
withBuiltInCatalogName
public EnvironmentSettings.Builder withBuiltInCatalogName(String builtInCatalogName)
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
public EnvironmentSettings.Builder withBuiltInDatabaseName(String builtInDatabaseName)
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
public 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.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)
-
withSqlFactory
public EnvironmentSettings.Builder withSqlFactory(org.apache.flink.table.expressions.SqlFactory sqlFactory)
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.
-
build
public EnvironmentSettings build()
Returns an immutable instance ofEnvironmentSettings.
-
-