Package org.apache.flink.table.api
Class EnvironmentSettings
java.lang.Object
org.apache.flink.table.api.EnvironmentSettings
Defines all parameters that initialize a table environment. Those parameters are used only during
instantiation of a
TableEnvironment and cannot be changed afterwards.
Example:
EnvironmentSettings.newInstance()
.inStreamingMode()
.withBuiltInCatalogName("default_catalog")
.withBuiltInDatabaseName("default_database")
.build()
inStreamingMode() or inBatchMode()
might be convenient as shortcuts.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets the specified name of the initial catalog to be created when instantiating aTableEnvironment.Gets the specified name of the default database in the initial catalog to be created when instantiating aTableEnvironment.org.apache.flink.table.catalog.CatalogStoreorg.apache.flink.configuration.ConfigurationGet the underlyingConfiguration.Returns the userClassLoaderto use for code generation, UDF loading and other operations requiring reflections on user code.static EnvironmentSettingsCreates a default instance ofEnvironmentSettingsin batch execution mode.static EnvironmentSettingsCreates a default instance ofEnvironmentSettingsin streaming execution mode.booleanTells if theTableEnvironmentshould work in a batch or streaming mode.static EnvironmentSettings.BuilderCreates a builder for creating an instance ofEnvironmentSettings.
-
Method Details
-
inStreamingMode
Creates a default instance ofEnvironmentSettingsin streaming execution mode.In this mode, both bounded and unbounded data streams can be processed.
This method is a shortcut for creating a
TableEnvironmentwith little code. Use the builder provided innewInstance()for advanced settings. -
inBatchMode
Creates a default instance ofEnvironmentSettingsin batch execution mode.This mode is highly optimized for batch scenarios. Only bounded data streams can be processed in this mode.
This method is a shortcut for creating a
TableEnvironmentwith little code. Use the builder provided innewInstance()for advanced settings. -
newInstance
Creates a builder for creating an instance ofEnvironmentSettings. -
getConfiguration
public org.apache.flink.configuration.Configuration getConfiguration()Get the underlyingConfiguration. -
getBuiltInCatalogName
Gets the specified name of the initial catalog to be created when instantiating aTableEnvironment. -
getBuiltInDatabaseName
Gets the specified name of the default database in the initial catalog to be created when instantiating aTableEnvironment. -
isStreamingMode
public boolean isStreamingMode()Tells if theTableEnvironmentshould work in a batch or streaming mode. -
getUserClassLoader
Returns the userClassLoaderto use for code generation, UDF loading and other operations requiring reflections on user code. -
getCatalogStore
@Internal @Nullable public org.apache.flink.table.catalog.CatalogStore getCatalogStore()
-