public class JavaSerializer extends Serializer implements java.io.Externalizable
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.
Modifier | Constructor and Description |
---|---|
protected |
JavaSerializer() |
|
JavaSerializer(SparkConf conf) |
Modifier and Type | Method and Description |
---|---|
SerializerInstance |
newInstance()
Creates a new
SerializerInstance . |
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
defaultClassLoader, getSerializer, getSerializer, setDefaultClassLoader
public JavaSerializer(SparkConf conf)
protected JavaSerializer()
public SerializerInstance newInstance()
Serializer
SerializerInstance
.newInstance
in class Serializer
public void writeExternal(java.io.ObjectOutput out)
writeExternal
in interface java.io.Externalizable
public void readExternal(java.io.ObjectInput in)
readExternal
in interface java.io.Externalizable