[
https://issues.apache.org/jira/browse/THRIFT-774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Piotr Kozikowski updated THRIFT-774:
------------------------------------
Attachment: primitives_partial_deserializationV1.patch
Here is a patch implementing this feature. I use object wrappers (e.g. Integer
instead of int) and casting so that I can return null when the field is not
found or of the wrong type. I think this approach is reasonable but I'm open to
suggestions.
> TDeserializer should provide a partialDeserialize method for primitive types
> ----------------------------------------------------------------------------
>
> Key: THRIFT-774
> URL: https://issues.apache.org/jira/browse/THRIFT-774
> Project: Thrift
> Issue Type: New Feature
> Components: Library (Java)
> Reporter: Piotr Kozikowski
> Assignee: Piotr Kozikowski
> Priority: Minor
> Attachments: primitives_partial_deserializationV1.patch
>
>
> There is a method partialDeserialize that allows the partial deserialization
> of fields that are structs (TBase), but not for primitive type fields.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.