DatastoreIO 中缺少 withNamespace() class

withNamespace() is missing in the DatastoreIO class

我使用数据流 Eclipse 插件创建了一个示例 Cloud Dataflow Java 项目,我想为 DatastoreIO 创建一个支持命名空间的管道,但我在 DatastoreIO 中找不到 withNamespace() class.

更新:DatastoreIO 命名空间支持在本周发布的 Java 版本 1.2.0 的 Cloud Dataflow SDK 中可用。

如果您从 GitHub 构建 SDK 的开发版本,则可以使用 DatastoreIO 命名空间支持,但是此版本尚未在 Maven 上发布。

如果您想在发布之前使用 DatastoreIO 命名空间支持,您可以按照 Getting Started instructions 安装 SDK 的开发版本。然后 Eclipse 项目应该会自动选择新版本,如果没有,您可以编辑项目 pom.xml 以通过这些更改手动指定所需的 1.1.1-SNAPSHOT 版本。

另请参阅:https://github.com/GoogleCloudPlatform/DataflowJavaSDK/issues/63(您通常不需要 post 这两个地方 :)。