T - the type of element to be sortedpublic static interface ExternalSort.Serializer<T>
| Modifier and Type | Method and Description |
|---|---|
T |
read(GeneiousObjectInputStream in)
reads an element from a stream
|
void |
write(GeneiousObjectOutputStream out,
T element)
writes this element to a stream
|
void write(GeneiousObjectOutputStream out, T element) throws IOException
out - the stream to write toelement - the element to write to the streamIOException - if there is a problem writing to the streamT read(GeneiousObjectInputStream in) throws IOException
in - the stream to read fromIOException - if there is a problem reading from the stream