class InventoryEstimateDaoESImp extends BaseDaoESImp implements InventoryEstimateDao {

    @Override
    public Impression getPredictions_PI_BNs_MINUS_SIGMA_BMs_DOT_q(Day day, List<TargetingChannel> bns, List<TargetingChannel> bms, TargetingChannel q) throws IOException
    {
        /**
         * If tcs size is zero the return is zero
         */
        if (CommonUtil.isEmpty(bns))
        {
            return new Impression();
        }

        BoolQueryBuilder bnsqb = createAndQueryForSingleValue(bns);
        BoolQueryBuilder bmsqb = createOrQueryForSingleValue(bms);
        bnsqb = bnsqb.mustNot(bmsqb);
        BoolQueryBuilder qb = createQueryForSingleValues(q);
        bnsqb = bnsqb.must(qb);

        return getPredictionsForQuery(day, bnsqb);
    }

    public  InventoryEstimateDaoESImp();
    public  InventoryEstimateDaoESImp(Properties properties);

}