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

Function group_by_key

bigflow_python/python/bigflow/transforms.py:446–483  ·  view source on GitHub ↗

利用给定的PCollection,使用一个默认的key/value提取函数对输入的PCollection分组 ,返回一个表示分组的PTable Args: pcollection (PCollection): 输入PCollection **options: 可配置选项 Returns: PTable: 分组结果 >>> _p = _pipeline.parallelize([("A", 4), ("A", 3), ("B", 2), ("A", 1)]) >>> transforms.group

(pcollection, **options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

pipelineMethod · 0.80
default_objectorMethod · 0.80
ExtractValueFnMethod · 0.80
group_byFunction · 0.70
getMethod · 0.45
serdeMethod · 0.45

Tested by

no test coverage detected