[
https://issues.apache.org/jira/browse/FLINK-3001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17329848#comment-17329848
]
Flink Jira Bot commented on FLINK-3001:
---------------------------------------
This issue has been labeled "stale-minor" for 7 days. It is closed now. If you
are still affected by this or would like to raise the priority of this ticket
please re-open, removing the label "auto-closed" and raise the ticket priority
accordingly.
> Add Support for Java 8 Optional type
> ------------------------------------
>
> Key: FLINK-3001
> URL: https://issues.apache.org/jira/browse/FLINK-3001
> Project: Flink
> Issue Type: New Feature
> Components: API / Type Serialization System
> Affects Versions: 0.10.0
> Reporter: Stephan Ewen
> Priority: Minor
> Labels: stale-minor
>
> Using {{Optional}} is a good way to handle nullable fields.
> The missing support for null fields in tuples can be easily handled by using
> {{Optional<T>}} for nullable fields and {{T}} directly for non nullable
> fields.
> That also retains best serialization efficiency.
> Since we cannot always assume the presence of {{Optional}} (only introduced
> in Java8), the TypeExtractor needs to analyze and create that TypeInfo with
> reflection.
> Further more, we need to add the OptionalTypeInfo to the flink-java8 project
> and people need to include flink-java8 in their project if they want to use
> the Optional.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)