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

Class PickleSerializer

source code

  object --+        
           |        
  Serializer --+    
               |    
FramedSerializer --+
                   |
                  PickleSerializer


Serializes objects using Python's cPickle serializer:

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

This serializer supports nearly any Python object, but may
not be as fast as more specialized serializers.

Instance Methods
 
dumps(self, obj)
Serialize an object into a byte array.
source code

Inherited from FramedSerializer: dump_stream, load_stream

Inherited from Serializer: __eq__, __ne__

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

Class Variables
  loads = cPickle.loads
Deserialize an object from a byte array.
Properties

Inherited from object: __class__

Method Details

dumps(self, obj)

source code 

Serialize an object into a byte array. When batching is used, this will be called with an array of objects.

Overrides: FramedSerializer.dumps
(inherited documentation)