MCPcopy Create free account
hub / github.com/baidu/bigflow / of

Function of

bigflow_python/python/bigflow/future/fields.py:61–75  ·  view source on GitHub ↗

创建FieldsDictSerde,用来序列化、反序列化有指定字段的字典。 因为字段已知,则key无需序列化,序列化出来的数据会小于marshal序列化后的结果。 Args: fields_to_types: 可以传入一个字段名组成的列表, 也可以传入一个key是字段名,value是相应字段所用的serde的dict。 如果只传入字段名,则表示所有类型都是可被marshal序列化的类型。 Returns: 相应的序列化器。

(fields_dict)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

get_serde_of_fieldsFunction · 0.70
get_out_fields_serdeFunction · 0.70
merge_serdeFunction · 0.70

Calls 1

FieldsDictSerdeClass · 0.70

Tested by

no test coverage detected