hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Calvin" <77231...@qq.com>
Subject reply: Why PageFilter returning less rows than it should be?
Date Thu, 10 Jul 2014 05:29:17 GMT
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


------------------ 原始邮件 ------------------
发件人: "Ted Yu";<yuzhihong@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. 

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message