| 8 | FeaturesFilter::FeaturesFilter(CBV const & filter, uint64_t threshold) : m_filter(filter), m_threshold(threshold) {} |
| 9 | |
| 10 | bool FeaturesFilter::NeedToFilter(CBV const & cbv) const |
| 11 | { |
| 12 | if (cbv.IsFull()) |
| 13 | return true; |
| 14 | return cbv.PopCount() > m_threshold; |
| 15 | } |
| 16 | |
| 17 | // LocalityFilter ---------------------------------------------------------------------------------- |
| 18 | LocalityFilter::LocalityFilter(CBV const & filter) : FeaturesFilter(filter, 0 /* threshold */) {} |
no test coverage detected