You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Can Celasun (Jira)" <ji...@apache.org> on 2019/08/20 13:02:00 UTC
[jira] [Commented] (THRIFT-4934) Add transient field support
[ https://issues.apache.org/jira/browse/THRIFT-4934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16911301#comment-16911301 ]
Can Celasun commented on THRIFT-4934:
-------------------------------------
I don't think this needs to be implemented in Thrift. Why not extend the generated types in your own code?
> Add transient field support
> ---------------------------
>
> Key: THRIFT-4934
> URL: https://issues.apache.org/jira/browse/THRIFT-4934
> Project: Thrift
> Issue Type: New Feature
> Reporter: Christian Spriegel
> Priority: Minor
>
> It would be great if transient fields could be defined in the schema, which are not serialized but can be used in the application.
> An example use case for this feature would be a calculated value that is calculated while loading from the database.
> I am unsure whether these fields would need metadata or if they are simply added as fields+getters&setters.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)