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

Function distinct

bigflow_python/python/bigflow/transforms.py:264–282  ·  view source on GitHub ↗

返回给定PCollection中所有不重复元素 Args: pcollection (PCollection): 输入PCollection **options: 可配置选项 Returns: PCollection: 不重复元素,以PCollection给出 >>> from bigflow import transforms >>> _p = _pipeline.parallelize([2, 2, 1, 9, 3, 3]) >>> transforms.distinct(_p).get()

(pcollection, **options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

distinctMethod · 0.80

Tested by

no test coverage detected