[
https://issues.apache.org/jira/browse/HBASE-14294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14710620#comment-14710620
]
Nick.han commented on HBASE-14294:
----------------------------------
The patch is made against version 2.0.0,And the aim of this patch is to limit
the return size of row(Result Object) from server,Not the heapSize of the
return cell,It's an replacement of PageFilter,cause the PageFilter cannot
guarantee that the number of results returned to a client are <= page
size,Everytime I use PageFilter,I write code like this
int count = 0;
for(Result result:resultScanner){
//operation
count++;
if(count>limit){
break;
}
}
It's not good for user experience
> Add new attribute to Scan to limit the return size of records
> -------------------------------------------------------------
>
> Key: HBASE-14294
> URL: https://issues.apache.org/jira/browse/HBASE-14294
> Project: HBase
> Issue Type: Improvement
> Affects Versions: 2.0.0
> Reporter: Nick.han
> Assignee: Nick.han
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: 14294-v1.patch
>
>
> Reason:
> we all use PageFilter to limit the size of the return records,but the
> PageFilter return limit * region number size of limit ,which is bad for a
> huge number of region per table.
> Solution:
> ClientScanner has a attribute caching which determine the return size of
> record per RPC,so we can use this attribute to limit the return size of hbase.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)