public class MoyenneWritable implements Writable { private double total = 0.0; private long nombre = 0L; public void write(DataOutput sortie) throws IOException { sortie.writeDouble(total); sortie.writeLong(nombre); } public void readFields(DataInput entree) throws IOException { total = entree.readDouble(); nombre = entree.readLong(); } }