[
https://issues.apache.org/jira/browse/PIG-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13150727#comment-13150727
]
Gianmarco De Francisci Morales commented on PIG-2359:
-----------------------------------------------------
I do not know about the semantics of isNull() in Tuple.
Is a Tuple null when all its fields are null?
In this case we are missing a piece in BinInterSedes.
I don't even know whether isNull() is used at all.
I would vote for the "just write NULL byte and get over" solution.
Finally, I don't see where you reconstruct the "nulls" field from the
serialized PrimitiveTuple, I am probably missing a piece.
> Support more efficient Tuples when schemas are known
> ----------------------------------------------------
>
> Key: PIG-2359
> URL: https://issues.apache.org/jira/browse/PIG-2359
> Project: Pig
> Issue Type: New Feature
> Reporter: Dmitriy V. Ryaboy
> Assignee: Dmitriy V. Ryaboy
> Attachments: PIG-2359.1.patch
>
>
> Pig Tuples have significant overhead due to the fact that all the fields are
> Objects.
> When a Tuple only contains primitive fields (ints, longs, etc), it's possible
> to avoid this overhead, which would result in significant memory savings.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira