Object res1 = udafEvaluator1.terminate(agg1);
Mode m2 = Mode.PARTIAL1;
ObjectInspector partialOutputOi2 = udafEvaluator2.init(m2, inputOiList2);
AggregationBuffer agg2 = udafEvaluator2.getNewAggregationBuffer();
udafEvaluator2.reset(agg2);
udafEvaluator2.iterate(agg2, new Object[] { null , 12 });
Object res2 = udafEvaluator2.terminate(agg2);
ObjectInspector finalOutputOi = udafEvaluator2.init(Mode.FINAL, new ObjectInspector[] {partialOutputOi1});