public class KryoSerializer<T> extends java.lang.Object implements ExternalMergeSort.Serializer<T>
| Constructor and Description |
|---|
KryoSerializer(java.lang.Class<T> type) |
KryoSerializer(java.lang.Class<T> type,
com.esotericsoftware.kryo.Kryo kryo) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Iterator<T> |
readValues(java.io.InputStream input) |
void |
writeValues(java.util.Iterator<T> values,
java.io.OutputStream out) |
public KryoSerializer(java.lang.Class<T> type)
public KryoSerializer(java.lang.Class<T> type, com.esotericsoftware.kryo.Kryo kryo)
public void writeValues(java.util.Iterator<T> values, java.io.OutputStream out) throws java.io.IOException
writeValues in interface ExternalMergeSort.Serializer<T>java.io.IOExceptionpublic java.util.Iterator<T> readValues(java.io.InputStream input) throws java.io.IOException
readValues in interface ExternalMergeSort.Serializer<T>java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2013. All Rights Reserved.