[
https://issues.apache.org/jira/browse/FLINK-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14601062#comment-14601062
]
ASF GitHub Bot commented on FLINK-2230:
---------------------------------------
GitHub user Shiti opened a pull request:
https://github.com/apache/flink/pull/867
[FLINK-2230] handling null values for TupleSerializer
When serializing, we add a `byte[] (BitSet.toByteArray)` before the fields
which indicates `null` fields.
When deserializing, we fetch the `byte[]` and obtain the underlying `BitSet
(BitSet.valueOf)`. `BitSet.get(index)` is `false` when the value is `null`. For
each field element we check if the its marked as `null` in the `BitSet` and
then pass it to the fieldSerializer.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Shiti/flink FLINK-2230
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/867.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #867
----
commit a4d2731eb75032f958e96323a075eb8bc7d11c73
Author: Shiti <[email protected]>
Date: 2015-06-25T10:36:10Z
[FLINK-2230]handling null values for TupleSerializer
----
> Add Support for Null-Values in TupleSerializer
> ----------------------------------------------
>
> Key: FLINK-2230
> URL: https://issues.apache.org/jira/browse/FLINK-2230
> Project: Flink
> Issue Type: Sub-task
> Reporter: Shiti Saxena
> Assignee: Shiti Saxena
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)