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

Function flatten

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

打平PTable为一个PCollection。如果K,V中有同样的字段,则以value中为准。 Args: p (pcollection): 输入数据集,需要是一个PTable,key,value中都必须为字典。 Returns: 返回一个每个元素是一个dict的pcollection,表示PTable打平后的结果, 如果key,value中有同样字段,以value为准。 例如::: >>> x = _pipeline.parallelize([{'a': 1, 'b': 2.0, 'c'

(p)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 10

new_dictFunction · 0.85
merge_serdeFunction · 0.85
nested_levelMethod · 0.80
flattenMethod · 0.80
key_serdesMethod · 0.80
default_objectorMethod · 0.80
pipelineMethod · 0.80
merge_kvFunction · 0.70
mapMethod · 0.45
serdeMethod · 0.45

Tested by

no test coverage detected