Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase, mail # user - Behaviour on Get call with ColumnPaginationFilter


+
Varun Sharma 2013-02-10, 04:53
Copy link to this message
-
Re: Behaviour on Get call with ColumnPaginationFilter
Ted Yu 2013-02-11, 00:03
ColumnPaginationFilter wouldn't load the entire row into memory:

  public ReturnCode filterKeyValue(KeyValue v)

  {

    if(count >= offset + limit)

    {

      return ReturnCode.NEXT_ROW;

    }
Cheers

On Sat, Feb 9, 2013 at 8:53 PM, Varun Sharma <[EMAIL PROTECTED]> wrote:

> Hi,
>
> If I am running the following call:
>
> Get get = new Get(row);
> get.setFilter(new ColumnPaginationFilter(50, 0));
>
> Does this load the entire row into memory ? Or will it only try to fetch as
> much as needed (basically load only the relevant hfile blocks into block
> cache instead of loading all the hfile blocks containing the row) ?
>
> Thanks
> Varun
>