public class KryoSerializer extends Serializer implements java.io.Serializable
Kryo serialization library.
Note that this serializer is not guaranteed to be wire-compatible across different versions of Spark. It is intended to be used to serialize/de-serialize data within a single Spark application.
| Constructor and Description |
|---|
KryoSerializer(SparkConf conf) |
| Modifier and Type | Method and Description |
|---|---|
int |
maxBufferSizeMb() |
SerializerInstance |
newInstance()
Creates a new
SerializerInstance. |
com.esotericsoftware.kryo.Kryo |
newKryo() |
com.esotericsoftware.kryo.io.Output |
newKryoOutput() |
static Serializer |
setDefaultClassLoader(ClassLoader classLoader) |
setDefaultClassLoaderpublic KryoSerializer(SparkConf conf)
public static Serializer setDefaultClassLoader(ClassLoader classLoader)
public int maxBufferSizeMb()
public com.esotericsoftware.kryo.io.Output newKryoOutput()
public com.esotericsoftware.kryo.Kryo newKryo()
public SerializerInstance newInstance()
SerializerSerializerInstance.newInstance in class Serializer