You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Sindy <si...@gmail.com> on 2011/03/20 15:11:58 UTC
Scan with filter
Hi,
I have a question about Scan.
*Scan s = new Scan();
s.setFilter(f);
ResultScanner scanner = _table.getScanner(s); *
I want to know the operation about filter was done at server-side or
client-side?
the data was sent back to client-side before filtering or the data was
filtered then sent to client ?
Thanks
--
Sindy
Re: Scan with filter
Posted by Pete Haidinyak <ja...@cox.net>.
One gotcha I found was you have to include the column you're going to
filter on in the columns you're going to return.
-Pete
On Sun, 20 Mar 2011 07:25:14 -0700, Ted Yu <yu...@gmail.com> wrote:
> The filtering is done at server side.
> See java doc for setFilter()
>
> On Sun, Mar 20, 2011 at 7:11 AM, Sindy <si...@gmail.com> wrote:
>
>> Hi,
>> I have a question about Scan.
>>
>> *Scan s = new Scan();
>> s.setFilter(f);
>> ResultScanner scanner = _table.getScanner(s); *
>>
>> I want to know the operation about filter was done at server-side or
>> client-side?
>>
>> the data was sent back to client-side before filtering or the data was
>> filtered then sent to client ?
>>
>>
>> Thanks
>> --
>> Sindy
Re: Scan with filter
Posted by Ted Yu <yu...@gmail.com>.
The filtering is done at server side.
See java doc for setFilter()
On Sun, Mar 20, 2011 at 7:11 AM, Sindy <si...@gmail.com> wrote:
> Hi,
> I have a question about Scan.
>
> *Scan s = new Scan();
> s.setFilter(f);
> ResultScanner scanner = _table.getScanner(s); *
>
> I want to know the operation about filter was done at server-side or
> client-side?
>
> the data was sent back to client-side before filtering or the data was
> filtered then sent to client ?
>
>
> Thanks
> --
> Sindy
>