[
https://issues.apache.org/jira/browse/HBASE-13387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14394253#comment-14394253
]
ramkrishna.s.vasudevan commented on HBASE-13387:
------------------------------------------------
One thing we can really try to achieve is that for all the comparator methods
move the hasArray check to the Comparators. But we need to create a Cell that
would be backed by the underlying BB which could be offheap or onheap. Once
such a cell is created we need that information to be used in the read path.
For comparators, take all those hasArray checks to the comparator related
Classes can be done. But still in certain cases like Filters - for the current
Cell that the filter handles we really need to know if it is BB backed or
byte[] backed.
> Add ServerCell an extension to Cell
> -----------------------------------
>
> Key: HBASE-13387
> URL: https://issues.apache.org/jira/browse/HBASE-13387
> Project: HBase
> Issue Type: Sub-task
> Components: regionserver, Scanners
> Reporter: Anoop Sam John
> Assignee: Anoop Sam John
> Attachments: WIP_ServerCell.patch
>
>
> This came in btw the discussion abt the parent Jira and recently Stack added
> as a comment on the E2E patch on the parent Jira.
> The idea is to add a new Interface 'ServerCell' in which we can add new
> buffer based getter APIs, hasArray API etc. We will keep this interface
> @InterfaceAudience.Private
> Also we have to change the timestamp and seqId on Cells in server side. We
> have added new interfaces SettableSequenceId, SettableTimestamp for this. Now
> if we can add a ServerCell we can add the setter APIs there.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)