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 <ssaxena....@gmail.com>
Date:   2015-06-25T10:36:10Z

    [FLINK-2230]handling null values for TupleSerializer

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to