ndv = Math.max(ndv, 1);
}
boolean isNegatedPredicateCriteria = false;
if(predicateCriteria instanceof CompareCriteria) {
CompareCriteria compCrit = (CompareCriteria) predicateCriteria;
if (compCrit.getOperator() == CompareCriteria.EQ || compCrit.getOperator() == CompareCriteria.NE){
if (unknownChildCost && (!usesKey || multiGroup)) {
return UNKNOWN_VALUE;
}
cost = childCost / ndv;
if (compCrit.getOperator() == CompareCriteria.NE) {
isNegatedPredicateCriteria = true;
}
} else { //GE, LE, GT, LT
cost = getCostForComparison(childCost, metadata, compCrit, unknownChildCost);
}