You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Michael Calvin <77...@qq.com> on 2014/07/10 07:29:17 UTC
reply: Why PageFilter returning less rows than it should be?
I'm sorry that was an unfinished mail. The proper one comes next.
But I believe it contains the essential: FilterLists inside a FilterList.
Those code I didn't write is simply getting the scanner and count how many results it has.
Here's the proper mail:
> Here's my code:
> Scan sc = new Scan();
> sc.addFamily(c);
> FilterList flo=new FilterList(Operator.MUST_PASS_ONE);
> flo.addFilter(somefilter);
> FilterList fla=new FilterList(Operator.MUST_PASS_ALL);
> fla.addFilter(somefilter);
> FilterList fl=new FilterList(Operator.MUST_PASS_ALL);
> fl.addFilter(new PageFilter(100));
> fl.addFilter(fla);
> fl.addFilter(flo);
> sc.setFilter(fl);
>
> There are 1480 rows without PageFilter, but only 7 return with it
------------------
Michael.Calvin.Shi
------------------ 原始邮件 ------------------
发件人: "Ted Yu";<yu...@gmail.com>;
发送时间: 2014年7月10日(星期四) 中午11:35
收件人: "user@hbase.apache.org"<us...@hbase.apache.org>;
抄送: "user"<us...@hbase.apache.org>;
主题: Re: Why PageFilter returning less rows than it should be?
Can you formulate the code snippet as a unit test ?
It would be much easier to understand / debug that way.
Thanks
回复: reply: Why PageFilter returning less rows than it should be?
Posted by 神之疯神 <77...@qq.com>.
Nope
------------------
Michael.Calvin.Shi
Re: reply: Why PageFilter returning less rows than it should be?
Posted by Ted Yu <yu...@gmail.com>.
somefilter is added to flo and fla.
Are they the same instance of some filter class ?
Cheers
On Wed, Jul 9, 2014 at 10:29 PM, Michael Calvin <77...@qq.com> wrote:
> I'm sorry that was an unfinished mail. The proper one comes next.
> But I believe it contains the essential: FilterLists inside a FilterList.
> Those code I didn't write is simply getting the scanner and count how many
> results it has.
>
>
>
>
>
> Here's the proper mail:
> > Here's my code:
> > Scan sc = new Scan();
> > sc.addFamily(c);
> > FilterList flo=new FilterList(Operator.MUST_PASS_ONE);
> > flo.addFilter(somefilter);
> > FilterList fla=new FilterList(Operator.MUST_PASS_ALL);
> > fla.addFilter(somefilter);
> > FilterList fl=new FilterList(Operator.MUST_PASS_ALL);
> > fl.addFilter(new PageFilter(100));
> > fl.addFilter(fla);
> > fl.addFilter(flo);
> > sc.setFilter(fl);
> >
> > There are 1480 rows without PageFilter, but only 7 return with it
>
> ------------------
> Michael.Calvin.Shi
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Ted Yu";<yu...@gmail.com>;
> 发送时间: 2014年7月10日(星期四) 中午11:35
> 收件人: "user@hbase.apache.org"<us...@hbase.apache.org>;
> 抄送: "user"<us...@hbase.apache.org>;
> 主题: Re: Why PageFilter returning less rows than it should be?
>
>
>
> Can you formulate the code snippet as a unit test ?
>
> It would be much easier to understand / debug that way.
>
> Thanks