Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink Table
  • TableEnvironment
  • pyflink.table.table_environment.StreamTableEnvironment.create

pyflink.table.table_environment.StreamTableEnvironment.create#

static StreamTableEnvironment.create(stream_execution_environment: StreamExecutionEnvironment | None = None, environment_settings: EnvironmentSettings | None = None) → StreamTableEnvironment[source]#

Creates a StreamTableEnvironment.

Example:

# create with StreamExecutionEnvironment.
>>> env = StreamExecutionEnvironment.get_execution_environment()
>>> table_env = StreamTableEnvironment.create(env)
# create with StreamExecutionEnvironment and EnvironmentSettings.
>>> configuration = Configuration()
>>> configuration.set_string('execution.buffer-timeout', '1 min')
>>> environment_settings = EnvironmentSettings \
...     .new_instance() \
...     .in_streaming_mode() \
...     .with_configuration(configuration) \
...     .build()
>>> table_env = StreamTableEnvironment.create(
...     env, environment_settings=environment_settings)
# create with EnvironmentSettings.
>>> table_env = StreamTableEnvironment.create(environment_settings=environment_settings)
Parameters:
  • stream_execution_environment – The StreamExecutionEnvironment of the TableEnvironment.

  • environment_settings – The environment settings used to instantiate the TableEnvironment.

Returns:

The StreamTableEnvironment created from given StreamExecutionEnvironment and configuration.

previous

pyflink.table.table_environment.StreamTableEnvironment.add_python_file

next

pyflink.table.table_environment.StreamTableEnvironment.create_java_function

On this page
  • StreamTableEnvironment.create()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.