[
https://issues.apache.org/jira/browse/HBASE-9359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13762461#comment-13762461
]
Jonathan Hsieh commented on HBASE-9359:
---------------------------------------
The secret cast method exists -- it is KeyValueUtil.ensureKeyValue(Cell). The
problem has to do with generic aggregate types with a type parameter.
For example this code in in invalid:
{code}
List<Cell> foo == ...;
List<KeyValue> bar = foo; // compile time fail.
{code}
Essentially the inefficiency come with a copy necessary for doing this.
{code}
List<Cell> foo == ...;
List<KeyValue> bar = foo; // no good. see [1]
{code}
[1]
https://issues.apache.org/jira/browse/HBASE-9359?focusedCommentId=13752906&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13752906
> Convert KeyValue to Cell in hbase-client module - Result/Put/Delete,
> ColumnInterpreter
> --------------------------------------------------------------------------------------
>
> Key: HBASE-9359
> URL: https://issues.apache.org/jira/browse/HBASE-9359
> Project: HBase
> Issue Type: Sub-task
> Components: Client
> Affects Versions: 0.95.2
> Reporter: Jonathan Hsieh
> Assignee: Jonathan Hsieh
> Fix For: 0.98.0, 0.96.0
>
> Attachments: hbase-9334-9359.v4.patch, hbase-9359-9334.v5.patch,
> hbase-9359-9334.v6.patch, hbase-9359.patch, hbase-9359.v2.patch,
> hbase-9359.v3.patch, hbase-9359.v5.patch, hbase-9359.v6.patch
>
>
> This path is the second half of eliminating KeyValue from the client
> interfaces. This percolated through quite a bit.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira