package serializer
Type Members
- 
      
      
      
        
      
    
      
        abstract 
        class
      
      
        DeserializationStream extends Closeable
      
      
      
:: DeveloperApi :: A stream for reading serialized objects.
:: DeveloperApi :: A stream for reading serialized objects.
- Annotations
 - @DeveloperApi()
 
 - 
      
      
      
        
      
    
      
        final 
        class
      
      
        DummySerializerInstance extends SerializerInstance
      
      
      
- Annotations
 - @Private()
 
 - 
      
      
      
        
      
    
      
        
        class
      
      
        JavaSerializer extends Serializer with Externalizable
      
      
      
:: DeveloperApi :: A Spark serializer that uses Java's built-in serialization.
:: DeveloperApi :: A Spark serializer that uses Java's built-in serialization.
- Annotations
 - @DeveloperApi()
 - Note
 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.
 - 
      
      
      
        
      
    
      
        
        trait
      
      
        KryoRegistrator extends AnyRef
      
      
      
Interface implemented by clients to register their classes with Kryo when using Kryo serialization.
 - 
      
      
      
        
      
    
      
        
        class
      
      
        KryoSerializer extends Serializer with Logging with Serializable
      
      
      
A Spark serializer that uses the Kryo serialization library.
A Spark serializer that uses the Kryo serialization library.
- Note
 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.
 - 
      
      
      
        
      
    
      
        abstract 
        class
      
      
        SerializationStream extends Closeable
      
      
      
:: DeveloperApi :: A stream for writing serialized objects.
:: DeveloperApi :: A stream for writing serialized objects.
- Annotations
 - @DeveloperApi()
 
 - 
      
      
      
        
      
    
      
        abstract 
        class
      
      
        Serializer extends AnyRef
      
      
      
:: DeveloperApi :: A serializer.
:: DeveloperApi :: 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()
 - 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.
 - 
      
      
      
        
      
    
      
        abstract 
        class
      
      
        SerializerInstance extends AnyRef
      
      
      
:: DeveloperApi :: An instance of a serializer, for use by one thread at a time.
:: DeveloperApi :: An instance of a serializer, for use by one thread at a time.
It is legal to create multiple serialization / deserialization streams from the same SerializerInstance as long as those streams are all used within the same thread.
- Annotations
 - @DeveloperApi() @NotThreadSafe()