【发布时间】:2019-04-23 04:00:53
【问题描述】:
我现在正在学习apache beam,出于好奇,我想问以下问题。
事先,我已经阅读了以下文档和主题。
https://beam.apache.org/documentation/programming-guide/#applying-transforms
Explain Apache Beam python syntax
我知道 pipe(|) 是 java 的 .apply 的 python 版本。但是,我很想知道 python 如何将 __or__ 运算符解释为处理从左到右经过的每个 pcollection 元素的处理器。
如果有人可以教育我并指出代码的参考,我将不胜感激。
谢谢, 于
【问题讨论】:
-
我在 Google 上搜索了“python 运算符重载”,并找到了一堆似乎很有可能的很好的参考资料。搜索 Github 存储库,看起来这可能是实际代码:github.com/apache/beam/blob/master/sdks/python/apache_beam/…
标签: google-cloud-platform apache-beam