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 EnvironmentSettings
build()
Returns an immutable instance ofEnvironmentSettings
.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 aTableEnvironment
.EnvironmentSettings.Builder
withBuiltInDatabaseName(String builtInDatabaseName)
Specifies the name of the default database in the initial catalog to be created when instantiating aTableEnvironment
.EnvironmentSettings.Builder
withCatalogStore(org.apache.flink.table.catalog.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(org.apache.flink.configuration.Configuration configuration)
Add extra configuration toEnvironmentSettings
.
-
-
-
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
ClassLoader
only if you know what you're doing.
-
withCatalogStore
public EnvironmentSettings.Builder withCatalogStore(org.apache.flink.table.catalog.CatalogStore catalogStore)
-
build
public EnvironmentSettings build()
Returns an immutable instance ofEnvironmentSettings
.
-
-