简体   繁体   English

在 apache beam 中创建自定义接收器

[英]Create a custom Sink in apache beam

I am using apache beam and trying to Create a custom sink, unfortunately cannot find any guides on how to create a custom sink.Can someone guide.我正在使用 apache beam 并尝试创建自定义接收器,不幸的是找不到任何关于如何创建自定义接收器的指南。有人可以指导吗?

Previously in Dataflow i used to override the Sink available in com.google.cloud.dataflow.sdk.io.Sink以前在 Dataflow 中,我曾经覆盖com.google.cloud.dataflow.sdk.io.Sink中可用的 Sink

I cannot seem to find a similar calls in Beam.Is it still avialble in beam somewhere?我似乎无法在 Beam 中找到类似的调用。它在 Beam 中的某个地方仍然可用吗?

I am using beam 2.3 sdk and Java我正在使用 Beam 2.3 SDK 和 Java

Please see https://beam.apache.org/documentation/io/authoring-overview/ and see implementation of the other write() transforms included with the Beam SDK.请参阅https://beam.apache.org/documentation/io/authoring-overview/并查看 Beam SDK 中包含的其他write()转换的实现。

The Sink interface has been deleted because we have found that there are no cases where it provides any value over just implementing a composite transform made up of ParDo, GBK and other transforms. Sink接口已被删除,因为我们发现在任何情况下它都不会比仅实现由 ParDo、GBK 和其他转换组成的复合转换提供任何价值。 Please also see this recent talk of mine ( slides ) about IO in Beam and about why sources/sinks should not be a special API, but should be simply composite transforms.另请参阅我最近关于 Beam 中的 IO 的演讲( 幻灯片)以及为什么源/汇不应该是一个特殊的 API,而应该是简单的复合转换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM