[ 
https://issues.apache.org/jira/browse/HBASE-11805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110845#comment-14110845
 ] 

stack commented on HBASE-11805:
-------------------------------

You are right. heapsize != length.  Need to add comment to estimateSizeOf.  
estimateSizeOf is not the serialized size either.  Its estimate.  We have to 
give up on heapSize for cell and use estimates instead?  There was discussion 
in an old issue on heapsize and Cell and was thought we should not add it 
unless really needed and wasn't thought needed at the time.   See HBASE-9383.  
We've been here before (smile).

> KeyValue to Cell Convert in WALEdit APIs
> ----------------------------------------
>
>                 Key: HBASE-11805
>                 URL: https://issues.apache.org/jira/browse/HBASE-11805
>             Project: HBase
>          Issue Type: Improvement
>          Components: wal
>            Reporter: Anoop Sam John
>            Assignee: Anoop Sam John
>             Fix For: 0.99.0, 2.0.0, 0.98.6
>
>
> In almost all other main interface class/APIs we have changed KeyValue to 
> Cell. But missing in WALEdit. This is public marked for Replication (Well it 
> should be for CP also) 
> These 2 APIs deal with KVs
> add(KeyValue kv)
> ArrayList<KeyValue> getKeyValues()
> Suggest deprecate them and add for 0.98
> add(Cell kv) 
> List<Cell> getCells()
> And just replace from 1.0



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to