public static interface OfflineIterable.Serializer<A,B extends A>
void write(A x, DataOutput dos) throws IOException
x
- the element to be written.dos
- the stream where the element should be written.IOException
- if an exception occurs while writing.void read(DataInput dis, B x) throws IOException
dis
- the stream whence the element should be read.x
- the object where the element will be read.IOException
- if an exception occurs while reading.