@AggregationType(estimable = true)
public class DoubleStatsAgg extends NumericStatsAgg {
@Override
public int estimate() {
JavaDataModel model = JavaDataModel.get();
return super.estimate() + model.primitive2() * 2;
}
@Override
protected void update(Object p, PrimitiveObjectInspector inputOI) {
double v = PrimitiveObjectInspectorUtils.getDouble(p, inputOI);