java - Specify multiple filters in hbase -
is there way specify multiple filters during scan? example - specify both columnfamilyfilter
, rowfilter
?
filter rowfilter = new rowfilter(comparefilter.compareop.equal, new regexstringcomparator( rowfilterstring)); scan s = new scan(); s.setfilter(rowfilter);
i wanted add columnfilter
s
. overrides latest filter.
you have create filterlist object, , add filters want that, , set filterlist
object filter. can either use constructor or use addfilter()
method add filters filter list.
filterlist filterlist = new filterlist(); filterlist.addfilter(new rowfilter(...)); filterlist.addfilter(new columnfilter(...)); scan s = new scan(); s.setfilter(filterlist);
Comments
Post a Comment