private static double computeBloomFilterNetBenefit(
      SelectOperator sel, List<ExprNodeDesc> selExpr,
      Statistics filStats, List<ExprNodeDesc> tsExpr) {
    double netBenefit = 0;
    double benefit = getBloomFilterBenefit(sel, selExpr, filStats, tsExpr);
    if (benefit > 0 && filStats != null) {
      double cost = getBloomFilterCost(sel);
      if (cost > 0) {
        long filDataSize = filStats.getNumRows();
        netBenefit = Math.max(benefit - cost, 0) / filDataSize;
        LOG.debug("BloomFilter benefit=" + benefit
            + ", cost=" + cost
            + ", tsDataSize=" + filDataSize
            + ", netBenefit=" + (benefit - cost));
      }
    }
    LOG.debug("netBenefit=" + netBenefit);
    return netBenefit;
  }
Computes the benefit of applying the bloom filter.
<p>
The benefit is defined as the number of tuples that are filtered/removed from the bloom.
</p>
ql/src/java/org/apache/hadoop/hive/ql/parse/TezCompiler.java