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
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Asynchronous I/O
    • Connectors
    • Formats
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink DataStream
  • StreamExecutionEnvironment
  • pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.add_default_kryo_serializer

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.add_default_kryo_serializer#

StreamExecutionEnvironment.add_default_kryo_serializer(type_class_name: str, serializer_class_name: str)[source]#

Adds a new Kryo default serializer to the Runtime.

Example:

>>> env.add_default_kryo_serializer("com.aaa.bbb.TypeClass", "com.aaa.bbb.Serializer")
Parameters:
  • type_class_name – The full-qualified java class name of the types serialized with the given serializer.

  • serializer_class_name – The full-qualified java class name of the serializer to use.

Note

Deprecated since version 1.19: Register data types and serializers through hard codes is deprecated, because you need to modify the codes when upgrading job version. You should configure this by option pipeline.serialization-config.

previous

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.get_restart_strategy

next

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.register_type_with_kryo_serializer

On this page
  • StreamExecutionEnvironment.add_default_kryo_serializer()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.