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

Function sort_by

bigflow_python/python/bigflow/transforms.py:861–901  ·  view source on GitHub ↗

对于输入PCollection,使用给定的key将其进行排序 Args: pcollection (PCollection): 输入PCollection key (function, optional): 用于提取key的函数,与Python内置``sort()``中的 ``key`` 参数相同。提取的key不能为None。可以返回一个key的列表,每个key都可以分别按照升序或者降序排 reverse (bool): 若True则降序排列,否则为升序排列 Returns: PCollection: 排序结

(pcollection, key, reverse=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

sort_byMethod · 0.45

Tested by

no test coverage detected