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

Function count

bigflow_python/python/bigflow/transforms.py:244–261  ·  view source on GitHub ↗

返回给定PCollection中元素的数量 Args: pcollection (PCollection): 输入PCollection **options: 可配置选项 Returns: PObject: 元素数量 >>> from bigflow import transforms >>> _p = _pipeline.parallelize([1, 2, 3, 4]) >>> transforms.count(_p).get() 4

(pcollection, **options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CommonScopeMethod · 0.50

Calls 1

countMethod · 0.45

Tested by

no test coverage detected