You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Konstantin Knauf (Jira)" <ji...@apache.org> on 2021/07/29 07:28:13 UTC
[jira] [Reopened] (FLINK-4783) Allow to register TypeInfoFactories
manually
[ https://issues.apache.org/jira/browse/FLINK-4783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Knauf reopened FLINK-4783:
-------------------------------------
Re-opening in accordance with https://issues.apache.org/jira/browse/FLINK-23206.
> Allow to register TypeInfoFactories manually
> --------------------------------------------
>
> Key: FLINK-4783
> URL: https://issues.apache.org/jira/browse/FLINK-4783
> Project: Flink
> Issue Type: Improvement
> Components: API / Type Serialization System
> Affects Versions: 1.2.0
> Reporter: Till Rohrmann
> Assignee: Alexander Alexandrov
> Priority: Minor
> Labels: auto-closed, stale-assigned
>
> The newly introduced {{TypeInfoFactories}} (FLINK-3042 and FLINK-3060) allow to create {{TypeInformations}} for types which are annotated with {{TypeInfo}}. This is useful if the user has control over the type for which he wants to generate the {{TypeInformation}}.
> However, annotating a type is not always possible if the type comes from an external library. In this case, it would be good to be able to directly register a {{TypeInfoFactory}} without having to annotate the type.
> The {{TypeExtractor#registerFactory}} already has such a method. However, it is declared private.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)