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.to_retract_stream

pyflink.table.table_environment.StreamTableEnvironment.to_retract_stream#

StreamTableEnvironment.to_retract_stream(table: Table, type_info: TypeInformation) → DataStream[source]#

Converts the given Table into a DataStream of add and retract messages. The message will be encoded as Tuple. The first field is a boolean flag, the second field holds the record of the specified type.

A true flag indicates an add message, a false flag indicates a retract message.

The fields of the Table are mapped to DataStream as follows: Row and Tuple types: Fields are mapped by position, field types must match.

Parameters:
  • table – The Table to convert.

  • type_info – The TypeInformation of the requested record type.

Returns:

The converted DataStream.

Added in version 1.12.0.

previous

pyflink.table.table_environment.StreamTableEnvironment.to_append_stream

next

pyflink.table.table_environment.StreamTableEnvironment.unload_module

On this page
  • StreamTableEnvironment.to_retract_stream()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.