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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -