flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timo Walther (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-7452) Add helper methods for all built-in Flink types to Types
Date Tue, 15 Aug 2017 11:12:00 GMT
Timo Walther created FLINK-7452:

             Summary: Add helper methods for all built-in Flink types to Types
                 Key: FLINK-7452
                 URL: https://issues.apache.org/jira/browse/FLINK-7452
             Project: Flink
          Issue Type: Improvement
          Components: Type Serialization System
            Reporter: Timo Walther
            Assignee: Timo Walther

Sometimes it is very difficult to provide `TypeInformation` manually, in case some extraction
fails or is not available. {{TypeHint}}s should be the preferred way but this methods can
ensure correct types.

I propose to add all built-in Flink types to the {{Types}}. Such as:

Types.POJO(Map<String, TypeInformation>)
Types.TUPLE(TypeInformation, ...)
Types.MAP(TypeInformation, TypeInformation)

The methods should validate that the returned type is exactly the requested type. And especially
in case of POJO should help creating  {{PojoTypeInfo}}.

Once this is in place, we can deprecate the {{TypeInfoParser}}.

This message was sent by Atlassian JIRA

View raw message