Packages

abstract class Serializer extends AnyRef

Developer API

A serializer. Because some serialization libraries are not thread safe, this class is used to create org.apache.spark.serializer.SerializerInstance objects that do the actual serialization and are guaranteed to only be called from one thread at a time.

Implementations of this trait should implement:

1. a zero-arg constructor or a constructor that accepts a org.apache.spark.SparkConf as parameter. If both constructors are defined, the latter takes precedence.

2. Java serialization interface.

Annotations
@DeveloperApi()
Source
Serializer.scala
Note

Serializers are not required to be wire-compatible across different versions of Spark. They are intended to be used to serialize/de-serialize data within a single Spark application.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Serializer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Serializer()

Abstract Value Members

  1. abstract def newInstance(): SerializerInstance

    Creates a new SerializerInstance.

Concrete Value Members

  1. def setDefaultClassLoader(classLoader: ClassLoader): Serializer

    Sets a class loader for the serializer to use in deserialization.

    Sets a class loader for the serializer to use in deserialization.

    returns

    this Serializer object