Using MapReduce chaining you can Perform this
write reducer output in single line using Text type Like
0.62,0.38,0.9
0.24,0.59,0.1
and again perform mapreduce on output file of first MapReduce.
public void map(Text key, Text value,OutputCollector<Text, Text> output,
Reporter reporter) throws IOException {
String temp=new String(value);
String token[]=temp.split(",");
output.collect(new Text("max"),new text(token[0]));
output.collect(new Text("min"),new text(token[1]));
output.collect(new Text("result"),new text(token[2]));
}
public void reduce(Text key, Iterator<Text> values,
OutputCollector<Text, Text> output, Reporter reporter)
throws IOException {
StringBuffer sb=new StringBuffer();
while (values.hasNext())
sb.append(values.next().toString() + ",");
output.collect(new Text(""),new Text(sb.toString()))
}