我如何使用Apache光束实验功能

时间:2022-01-23 15:36:32


I see there is a RedisIO source and sink since Apache Beam 2.2.0, but it seems it is impossible to just use it.
Looking at the code, I see it is marked as experimental.
How can I still use it, even when such ?

我看到自Apache Beam 2.2.0以来有一个RedisIO源和接收器,但似乎不可能只使用它。看一下代码,我看到它被标记为实验性的。我怎么还能使用它,即使是这样的?

Please advise,
Shushu

请告知,舒书

2 个解决方案

#1


1  

For clarification, the Experimental annotation is simply a documentation feature to denote that the behavior of the class, method, etc may change. It doesn't have any implications or restrictions for ability to use. As you already discovered, you were just missing a dependency.

为了澄清,实验注释只是一个文档功能,表示类,方法等的行为可能会发生变化。它对使用能力没有任何影响或限制。正如您已经发现的那样,您只是错过了一个依赖项。

Just FYI, annotations are a feature of Java.

仅供参考,注释是Java的一个特性。

Reference:
1. Java Annotations
2. Apache Beam Experimental Annotation

参考:1。Java注释2.Apache Beam实验注释

#2


-1  

Found I was missing a dependency... https://mvnrepository.com/artifact/org.apache.beam/beam-sdks-java-io-redis/2.4.0

发现我错过了依赖... https://mvnrepository.com/artifact/org.apache.beam/beam-sdks-java-io-redis/2.4.0

#1


1  

For clarification, the Experimental annotation is simply a documentation feature to denote that the behavior of the class, method, etc may change. It doesn't have any implications or restrictions for ability to use. As you already discovered, you were just missing a dependency.

为了澄清,实验注释只是一个文档功能,表示类,方法等的行为可能会发生变化。它对使用能力没有任何影响或限制。正如您已经发现的那样,您只是错过了一个依赖项。

Just FYI, annotations are a feature of Java.

仅供参考,注释是Java的一个特性。

Reference:
1. Java Annotations
2. Apache Beam Experimental Annotation

参考:1。Java注释2.Apache Beam实验注释

#2


-1  

Found I was missing a dependency... https://mvnrepository.com/artifact/org.apache.beam/beam-sdks-java-io-redis/2.4.0

发现我错过了依赖... https://mvnrepository.com/artifact/org.apache.beam/beam-sdks-java-io-redis/2.4.0