ObjectInspector[] inputOiList2 = new ObjectInspector[] {
PrimitiveObjectInspectorFactory.javaStringObjectInspector,
PrimitiveObjectInspectorFactory.javaIntObjectInspector
};
GenericUDAFParameterInfo paramInfo1 = new SimpleGenericUDAFParameterInfo(inputOiList1, false, false);
GenericUDAFEvaluator udafEvaluator1 = udaf.getEvaluator(paramInfo1);
GenericUDAFParameterInfo paramInfo2 = new SimpleGenericUDAFParameterInfo(inputOiList2, false, false);
GenericUDAFEvaluator udafEvaluator2 = udaf.getEvaluator(paramInfo2);
Mode m1 = Mode.PARTIAL1;
ObjectInspector partialOutputOi1 = udafEvaluator1.init(m1, inputOiList1);
AggregationBuffer agg1 = udafEvaluator1.getNewAggregationBuffer();