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

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

For the DBB backed cells, if we throw Exception on getXXXArray() API calls, we 
will have to do the instance of check every where.  Even when we log an 
exception.. Else the call will throw exception.. THis will make the entire code 
base to have the instance checks..    
For CPs and Filters, if user calls the getXXXArray methods it will be an issue. 
 Else they have to do instance of check. If Cell had a hasArray() it would have 
been better.
SO IMHO it is not good to throw Exception on getXXXArray() APIs..  Yes for perf 
reasons one should use getXXXByteBuffer() API for BBCell. But not at all 
supporting that getXXXArray() API wont be good I think

> Create the fake keys required in the scan path to avoid copy to byte[]
> ----------------------------------------------------------------------
>
>                 Key: HBASE-14398
>                 URL: https://issues.apache.org/jira/browse/HBASE-14398
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 2.0.0
>
>         Attachments: HBASE-14398.patch, HBASE-14398_1.patch
>
>
> Already we have created some fake keys for the ByteBufferedCells so that we 
> can avoid the copy requried to create fake keys. This JIRA aims to fill up 
> all such places so that the Offheap BBs are not copied to onheap byte[].



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

Reply via email to