@PublicEvolving public class EnvironmentSettings extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
EnvironmentSettings.Builder
A builder for
EnvironmentSettings . |
Modifier and Type | Method and Description |
---|---|
static EnvironmentSettings |
fromConfiguration(ReadableConfig configuration)
Deprecated.
|
String |
getBuiltInCatalogName()
Gets the specified name of the initial catalog to be created when instantiating a
TableEnvironment . |
String |
getBuiltInDatabaseName()
Gets the specified name of the default database in the initial catalog to be created when
instantiating a
TableEnvironment . |
CatalogStore |
getCatalogStore() |
Configuration |
getConfiguration()
Get the underlying
Configuration . |
ClassLoader |
getUserClassLoader()
Returns the user
ClassLoader to use for code generation, UDF loading and other
operations requiring reflections on user code. |
static EnvironmentSettings |
inBatchMode()
Creates a default instance of
EnvironmentSettings in batch execution mode. |
static EnvironmentSettings |
inStreamingMode()
Creates a default instance of
EnvironmentSettings in streaming execution mode. |
boolean |
isStreamingMode()
Tells if the
TableEnvironment should work in a batch or streaming mode. |
static EnvironmentSettings.Builder |
newInstance()
Creates a builder for creating an instance of
EnvironmentSettings . |
Configuration |
toConfiguration()
Deprecated.
use
getConfiguration() instead. |
public static EnvironmentSettings inStreamingMode()
EnvironmentSettings
in streaming execution mode.
In this mode, both bounded and unbounded data streams can be processed.
This method is a shortcut for creating a TableEnvironment
with little code. Use
the builder provided in newInstance()
for advanced settings.
public static EnvironmentSettings inBatchMode()
EnvironmentSettings
in 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 TableEnvironment
with little code. Use
the builder provided in newInstance()
for advanced settings.
public static EnvironmentSettings.Builder newInstance()
EnvironmentSettings
.@Deprecated public static EnvironmentSettings fromConfiguration(ReadableConfig configuration)
EnvironmentSettings.Builder.withConfiguration(Configuration)
instead.EnvironmentSettings
from configuration.@Deprecated public Configuration toConfiguration()
getConfiguration()
instead.Configuration
.public Configuration getConfiguration()
Configuration
.public String getBuiltInCatalogName()
TableEnvironment
.public String getBuiltInDatabaseName()
TableEnvironment
.public boolean isStreamingMode()
TableEnvironment
should work in a batch or streaming mode.@Internal public ClassLoader getUserClassLoader()
ClassLoader
to use for code generation, UDF loading and other
operations requiring reflections on user code.@Internal @Nullable public CatalogStore getCatalogStore()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.