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

Switch to Plain View
HBase >> mail # dev >> SkipFilter javadoc is incorrect

Copy link to this message
SkipFilter javadoc is incorrect
Hi Devs,

The javadoc for SkipFilter (
states :
> A wrapper filter that filters an entire row if any of the KeyValue checks
> do not pass.
But the example same javadocs gives to support this statement is wrong. The
*scan.setFilter(new SkipFilter(new ValueFilter(CompareOp.EQUAL,
     new BinaryComparator(Bytes.toBytes(0))));* , will only emit rows which
have all column values zero. In other words it is going to skip all rows
for which
ValueFilter(CompareOp.EQUAL, new BinaryComparator(Bytes.toBytes(0))) does
not pass , which happen to be all non zero valued cells.

In the same example a ValueFilter created with CompareOp.NOT_EQUAL will
filter out the rows which have a column value zero.

Please correct me if I am getting this wrong.

Stack 2012-07-31, 21:25
Shrijeet Paliwal 2012-07-31, 21:30
Shrijeet Paliwal 2012-08-01, 06:26
Stack 2012-08-01, 22:04