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

Duo Zhang commented on HBASE-16838:
-----------------------------------

The reason why we introduce a small scan is that we want to get the whole 
result with one rpc call, so I think it is reasonable to have the same API with 
get?

Actually we have introduced a high level API for HBase at xiaomi, which makes 
the user easier to use HBase, and we declare scan like this

{code}
  public List<Result> scan(String tableName, Scan scan) throws HException;

  public List<Result> scan(String tableName, Scan scan, int limit) throws 
HException;
{code}

So I think a scan method that returns the whole results is acceptable? And I 
think the three methods are designed for three scenario, users are free to use 
what they want to. And maybe we could use [~jurmous]'s AsyncResultScanner as 
the return value of the last getScanner method, but I do not know how to make 
use of it... Is it allowed to call next again before the previous next call 
returns?

> Implement scan
> --------------
>
>                 Key: HBASE-16838
>                 URL: https://issues.apache.org/jira/browse/HBASE-16838
>             Project: HBase
>          Issue Type: Sub-task
>    Affects Versions: 2.0.0
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16838.patch
>
>




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

Reply via email to