Thanks for the response, I indeed have MUST_PASS_ONE operator defined for the filterlist, and my list passes and returns result as well. I just wanted to know how duplicate filters are handled within filterlist, which you already clarified by saying that it would bloat up the list.
In this case, won't a filterset make more sense? Do you think creating a bug(or a feature request) for this, makes sense? Thanks & Regards Biplob Biswas On Fri, Jul 20, 2018 at 6:31 PM Ted Yu <[email protected]> wrote: > Assuming your filter list uses MUST_PASS_ONE operator, the recurring key > would pass one of these RowFilter's. So the filter list would pass. > > However, depending on the actual number of repetitions for a given key, > your filter list would be bloated. > You can use ByteArrayComparable#getValue() to determine if the key you want > to check is already specified by any of the existing filters in the filter > list. > > Cheers > > On Fri, Jul 20, 2018 at 8:46 AM Biplob Biswas <[email protected]> > wrote: > > > For example, > > > > I have an iterative process which generates the key and inserts the key > as > > a RowFilter in a filter list. > > > > For example: > > > > for(String k:keys){ > > filterlist.addfilter(new RowFilter(EQ, BinaryComparator(k))) > > } > > > > Now if the list "keys" has same keys multiple times, we are adding the > same > > RowFilter to the FilterList multiple times. What is HBase doing in that > > circumstance > > > > Thanks & Regards > > Biplob Biswas > > > > > > On Fri, Jul 20, 2018 at 4:12 PM Ted Yu <[email protected]> wrote: > > > > > Did you mean chaining the same row filter 'n' times using FilterList ? > > > Is the row filter from hbase (RowFilter) ? > > > What operator do you use (MUST_PASS_ALL or MUST_PASS_ONE) ? > > > > > > For second question, I wonder how filter set would handle the > constituent > > > filters differently from how FilterList handles them. > > > Maybe by 'Set' you mean when any one of the constituent filters passes, > > the > > > row is returned ? > > > > > > Cheers > > > > > > On Fri, Jul 20, 2018 at 4:45 AM Biplob Biswas < > [email protected]> > > > wrote: > > > > > > > What happens if I insert the same row filter 'n' times? Would the > table > > > be > > > > queried n times with the same row key? > > > > > > > > Why is it that there is a filterList and not a filterSet? > > > > > > > > Thanks & Regards > > > > Biplob Biswas > > > > > > > > > >
