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

Anoop Sam John commented on HBASE-16784:
----------------------------------------

bq.return ((ExtendedCell)cell).getSerializedSize(withTags);
The write(OS, boolean) method already return the #bytes writter.



> Make use of ExtendedCell#write(OutputStream os) for the default 
> HFileWriter#append()
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-16784
>                 URL: https://issues.apache.org/jira/browse/HBASE-16784
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16784.patch, HBASE-16784_1.patch
>
>
> Initially this I was thinking we need to add an interface to represent the 
> fact that the key is contiguous. But since Extendedcell is added 
> encapsulating all the internal interfaces and adds a write(OutputStream , 
> boolean) and tries to exploit the fact that the Cell is in KV serialized 
> format. Hence we can make use of it in HFileWriter#append() code in case of 
> No encoding case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to