本文简要介绍 python 语言中pyflink.datastream.StreamExecutionEnvironment.register_type
的用法。
用法:
register_type(type_class_name: str)
向序列化堆栈注册给定类型。如果该类型最终被序列化为 POJO,则该类型将注册到 POJO 序列化程序。如果类型最终被 Kryo 序列化,那么它将在 Kryo 注册以确保只写入标签。
例子:
>>> env.register_type("com.aaa.bbb.TypeClass")
参数:
type_class_name - 要注册的类型的全限定 java 类名。
相关用法
- Python pyflink StreamExecutionEnvironment.register_type_with_kryo_serializer用法及代码示例
- Python pyflink StreamExecutionEnvironment.set_restart_strategy用法及代码示例
- Python pyflink StreamExecutionEnvironment.set_python_executable用法及代码示例
- Python pyflink StreamExecutionEnvironment.enable_checkpointing用法及代码示例
- Python pyflink StreamExecutionEnvironment.set_state_backend用法及代码示例
- Python pyflink StreamExecutionEnvironment.add_python_archive用法及代码示例
- Python pyflink StreamExecutionEnvironment.set_stream_time_characteristic用法及代码示例
- Python pyflink StreamExecutionEnvironment.set_default_savepoint_directory用法及代码示例
- Python pyflink StreamExecutionEnvironment.add_default_kryo_serializer用法及代码示例
- Python pyflink StreamExecutionEnvironment.set_python_requirements用法及代码示例
- Python pyflink StreamTableEnvironment.from_data_stream用法及代码示例
- Python pyflink StreamTableEnvironment.create用法及代码示例
- Python pyflink StreamTableEnvironment.to_changelog_stream用法及代码示例
- Python pyflink StatementSet.add_insert用法及代码示例
- Python pyflink Session用法及代码示例
- Python pyflink Slide用法及代码示例
- Python pyflink Schema.Builder.watermark用法及代码示例
- Python pyflink Schema.Builder.column_by_expression用法及代码示例
- Python pyflink SlidingProcessingTimeWindows用法及代码示例
- Python pyflink SlidingEventTimeWindows用法及代码示例
- Python pyflink Table.intersect_all用法及代码示例
- Python pyflink GroupedTable.select用法及代码示例
- Python pyflink Expression.to_date用法及代码示例
- Python pyflink Table.fetch用法及代码示例
- Python pyflink PulsarSourceBuilder用法及代码示例
注:本文由纯净天空筛选整理自apache.org大神的英文原创作品 pyflink.datastream.StreamExecutionEnvironment.register_type。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。