Constructor and Description |
---|
KryoUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
copy(T from,
com.esotericsoftware.kryo.Kryo kryo,
TypeSerializer<T> serializer)
Tries to copy the given record from using the provided Kryo instance.
|
static <T> T |
copy(T from,
T reuse,
com.esotericsoftware.kryo.Kryo kryo,
TypeSerializer<T> serializer)
Tries to copy the given record from using the provided Kryo instance.
|
public static <T> T copy(T from, com.esotericsoftware.kryo.Kryo kryo, TypeSerializer<T> serializer)
T
- Type of the element to be copiedfrom
- Element to copykryo
- Kryo instance to useserializer
- TypeSerializer which is used in case of a Kryo failurepublic static <T> T copy(T from, T reuse, com.esotericsoftware.kryo.Kryo kryo, TypeSerializer<T> serializer)
T
- Type of the element to be copiedfrom
- Element to copyreuse
- Reuse element for the deserializationkryo
- Kryo instance to useserializer
- TypeSerializer which is used in case of a Kryo failureCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.