MCPcopy Create free account
hub / github.com/apache/impala / serialize

Function serialize

tests/comparison/data_generator_mapred_common.py:33–37  ·  view source on GitHub ↗

Returns a serialized representation of 'value' suitable for use as a key in an MR streaming job.

(value)

Source from the content-addressed store, hash-verified

31from tests.comparison.random_val_generator import RandomValGenerator
32
33def serialize(value):
34 '''Returns a serialized representation of 'value' suitable for use as a key in an MR
35 streaming job.
36 '''
37 return base64.b64encode(pickle.dumps(value))
38
39
40def deserialize(value):

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected