Package pyspark :: Module serializers :: Class MarshalSerializer
[frames] | no frames]

Class MarshalSerializer

source code

  object --+        
           |        
  Serializer --+    
               |    
FramedSerializer --+
                   |
                  MarshalSerializer


Serializes objects using Python's Marshal serializer:

    http://docs.python.org/2/library/marshal.html

This serializer is faster than PickleSerializer but supports fewer datatypes.

Instance Methods

Inherited from FramedSerializer: __init__, dump_stream, load_stream

Inherited from Serializer: __eq__, __ne__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  dumps = marshal.dumps
Serialize an object into a byte array.
  loads = marshal.loads
Deserialize an object from a byte array.
Properties

Inherited from object: __class__