[
https://issues.apache.org/jira/browse/HBASE-8135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13605362#comment-13605362
]
nkeywal commented on HBASE-8135:
--------------------------------
I was trying to find a generic way to get the size of an object. A google
search on this leads to quite a lot of terrible practises :-). It should be
possible to do a static{} block for the fixed fields, but it won't bring much
actual value. With the current implementation, it's better to have unit tests
when ones adds fields. I'm going to do this in this patch (including Increment)
it will be simpler.
> Mutation should implement HeapSize
> ----------------------------------
>
> Key: HBASE-8135
> URL: https://issues.apache.org/jira/browse/HBASE-8135
> Project: HBase
> Issue Type: Bug
> Components: Client
> Affects Versions: 0.95.0, 0.96.0, 0.94.5
> Reporter: nkeywal
> Assignee: nkeywal
> Priority: Minor
> Fix For: 0.95.0, 0.96.0
>
> Attachments: 8135.v1.patch
>
>
> Code is there already.
> Doing so would allow to share some code when doing client side buffering.
> patch compiles locally, should not impact tests, but not tested locally.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira