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

Enis Soztutar commented on HBASE-15879:
---------------------------------------

Can we follow the ByteBuffer-like mechanism for optional interfaces? For 
example {{ByteBuffer.hasArray()}} and {{ByteBuffer.array()}}. Seeing an 
interface called {{Key}}, it is not clear to me what is the contract. Having a 
concept for "cell having backed by byte-array" should not have a name "Key" 
IMO.  

> Introduce Key interface
> -----------------------
>
>                 Key: HBASE-15879
>                 URL: https://issues.apache.org/jira/browse/HBASE-15879
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-15879.patch, HBASE-15879_1.patch
>
>
> Introduce an interface called Key and allow Cell implementations to implement 
> this Key interface for cases like KeyValue, OffheapKeyValue and DBE cells 
> (Except prefix tree) so that we can avoid copies when we deal with only Cells 
> in case of block index creations (like ROOT, Bloom etc). Helps in reduction 
> of garbage also. 



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

Reply via email to