hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davis <davisabra...@gmail.com>
Subject Re: Multiple filterlist
Date Wed, 02 May 2012 13:57:48 GMT
Guys i understand this... But my question i want to add multiple filterlists...
Something like this

FilterList list1 = new FilterList(FilterList.Operator.MUST_PASS_ONE);
SingleColumnValueFilter filter1 = new SingleColumnValueFilter(
 	cf,
 	column,
 	CompareOp.EQUAL,
 	Bytes.toBytes("my value")
 	);
list.add(filter1);

FilterList list2 = new FilterList(FilterList.Operator.MUST_PASS_ONE);
SingleColumnValueFilter filter2 = new SingleColumnValueFilter(
 	cf,
 	column,
 	CompareOp.EQUAL,
 	Bytes.toBytes("my value")
 	);
list.add(filter2);

scan.setFilter(list1);
scan.setFilter(list2);


Mime
View raw message