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

Method take

bigflow_python/python/bigflow/pcollection.py:385–403  ·  view source on GitHub ↗

给定PCollection中的任意n个元素,等同于 :func:`bigflow.transforms.take` Args: n (int or PObject): 元素数量 **options: 可配置参数 Returns: PCollection: 表示结果的PCollection >>> _pipeline.parallelize([1, 2, 3, 4]).take(3).get() [1, 2, 3] >>> _

(self, n, **options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

takeFunction · 0.80
getFunction · 0.80
test_takeMethod · 0.80
intersectionFunction · 0.80
is_emptyFunction · 0.80
firstFunction · 0.80
test_take_pobjectMethod · 0.80
test_take_intMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_takeMethod · 0.64
test_take_pobjectMethod · 0.64
test_take_intMethod · 0.64