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 <77231...@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";<yuzhih...@gmail.com>; > 发送时间: 2014年7月10日(星期四) 中午11:35 > 收件人: "user@hbase.apache.org"<user@hbase.apache.org>; > 抄送: "user"<user@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