You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Zheng Wang (JIRA)" <ji...@apache.org> on 2019/03/20 12:31:00 UTC

[jira] [Commented] (HBASE-21918) the use cases in doc should use Cell instead of KeyValue

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

Zheng Wang commented on HBASE-21918:
------------------------------------

[~xucang] Could you help me for commit it. Thanks!

> the use cases in doc should use Cell instead of KeyValue
> --------------------------------------------------------
>
>                 Key: HBASE-21918
>                 URL: https://issues.apache.org/jira/browse/HBASE-21918
>             Project: HBase
>          Issue Type: Improvement
>          Components: documentation
>            Reporter: Zheng Wang
>            Assignee: Zheng Wang
>            Priority: Trivial
>              Labels: starter
>         Attachments: HBASE-21918.patch
>
>
> the describe of KeyValue:
> ...
>  * HBase applications and users should use the Cell interface and avoid directly using KeyValue and
>  * member functions not defined in Cell.
> ...
> for example,the use case of ColumnRangeFilter:
> ...
> ResultScanner rs = t.getScanner(scan);
> for (Result r = rs.next(); r != null; r = rs.next()) {
>  for (KeyValue kv : r.raw()) {
>  // each kv represents a column
>  }
> }
> ...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)