druid/bytebuffer-collections
Gian Merlino 97765fdfef Simplify LikeFilter implementation of getBitmapIndex, estimateSelectivity. (#3910)
* Simplify LikeFilter implementation of getBitmapIndex, estimateSelectivity.

LikeFilter:
- Reduce code duplication, and simplify methods, at the cost of incurring an extra box
  of ImmutableBitmap into a SingletonImmutableList. I think this is fine, since this
  should be cheap and the code path is not hot (just once per filter).

Filters:
- Make estimateSelectivity public since it seems intended that they be used by Filter
  implementations, and Filters from extensions may want to use them too. Removed
  @VisibleForTesting for the same reason.
- Rename one of the estimatePredicateSelectivity overloads to estimateSelectivity, since
  predicates aren't involved.

* Address PR comments.

* Remove unused import

* Change List to Collection
2017-02-08 13:46:01 -06:00
..
benchmarks Migrating bytebuffercollections from Metamarkets. (#3647) 2016-11-11 10:51:07 -08:00
src Simplify LikeFilter implementation of getBitmapIndex, estimateSelectivity. (#3910) 2017-02-08 13:46:01 -06:00
pom.xml Bump version to 0.10.0-SNAPSHOT. (#3913) 2017-02-06 17:54:35 -08:00