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

Enis Soztutar commented on HBASE-15484:
---------------------------------------

Let's do this for 2.0. The scan API is too confusing now with caching, 
batching, allowPartialResults, setMaxResultsPerColumnFamily, and maxResultSize. 
We are not making the life of the user easy. 

Should we get rid of batching and caching, setMaxResultsPerColumnFamily (turn 
them into no-ops) and only do allowPartialResults and maxResultSize? How 
radical it will be for 2.0? 

> Correct the semantic of batch and partial
> -----------------------------------------
>
>                 Key: HBASE-15484
>                 URL: https://issues.apache.org/jira/browse/HBASE-15484
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.2.0, 1.1.3
>            Reporter: Phil Yang
>            Assignee: Phil Yang
>             Fix For: 2.0.0
>
>         Attachments: HBASE-15484-v1.patch, HBASE-15484-v2.patch, 
> HBASE-15484-v3.patch, HBASE-15484-v4.patch
>
>
> Follow-up to HBASE-15325, as discussed, the meaning of setBatch and 
> setAllowPartialResults should not be same. We should not regard setBatch as 
> setAllowPartialResults.
> And isPartial should be define accurately.
> (Considering getBatch==MaxInt if we don't setBatch.) If 
> result.rawcells.length<scan.getBatch && result is not the last part of this 
> row, isPartial==true, otherwise isPartial == false. So if user don't 
> setAllowPartialResults(true), isPartial should always be false.



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

Reply via email to