io.ray.runtime.serializer.Serializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ray-runtime Show documentation
Show all versions of ray-runtime Show documentation
ray runtime implementation
The newest version!
package io.ray.runtime.serializer;
import org.apache.commons.lang3.tuple.Pair;
public class Serializer {
public static Pair encode(Object obj) {
return MessagePackSerializer.encode(obj);
}
@SuppressWarnings("unchecked")
public static T decode(byte[] bs, Class type) {
return MessagePackSerializer.decode(bs, type);
}
}