[ 
https://issues.apache.org/jira/browse/BEAM-6730?focusedWorklogId=213694&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-213694
 ]

ASF GitHub Bot logged work on BEAM-6730:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Mar/19 10:52
            Start Date: 15/Mar/19 10:52
    Worklog Time Spent: 10m 
      Work Description: mxm commented on pull request #7875: [BEAM-6730] Expose 
Java SDK's GenerateSequence in Python
URL: https://github.com/apache/beam/pull/7875#discussion_r265932733
 
 

 ##########
 File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/io/GenerateSequence.java
 ##########
 @@ -98,6 +103,46 @@
     abstract GenerateSequence build();
   }
 
+  /** Exposes GenerateSequence as an external transform for cross-language 
usage. */
+  @AutoService(ExternalTransformRegistrar.class)
+  public static class External implements ExternalTransformRegistrar {
+
+    @Override
+    public Map<String, Class<? extends ExternalConfigBuilder>> knownBuilders() 
{
+      return ImmutableMap.of(
+          "beam:external:java:generate_sequence:v1", 
ExternalConfiguration.class);
+    }
+
+    /** Parameters class to expose the transform to an external SDK. */
+    public static class ExternalConfiguration
+        implements ExternalConfigBuilder<PBegin, PCollection<Long>> {
 
 Review comment:
   I'll look into that. We cannot implement `ExternalConfigBuilder` directly on 
the transform but ideally we would implement it on the existing (non-portable) 
builder.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 213694)
    Time Spent: 7h 40m  (was: 7.5h)

> Expose Java transforms (specifically IO) in other SDKs
> ------------------------------------------------------
>
>                 Key: BEAM-6730
>                 URL: https://issues.apache.org/jira/browse/BEAM-6730
>             Project: Beam
>          Issue Type: New Feature
>          Components: runner-flink, sdk-java-core, sdk-py-core
>            Reporter: Maximilian Michels
>            Assignee: Maximilian Michels
>            Priority: Major
>          Time Spent: 7h 40m
>  Remaining Estimate: 0h
>
> Since https://github.com/apache/beam/pull/7316 we can reference external 
> transforms which are transforms only available in a "foreign" SDKs. This 
> allows us to fill the gap in terms of missing transforms in the Python and Go 
> SDK, specifically IO transforms.
> We can start collecting/exposing transforms that Beam users need. The 
> following transforms could be interesting:
> - KafkaIO / KinesisIO
> - CassandraIO / ElasticserchIO / Hbase / Redis
> - JDBC
> - S3 file system
> - GenerateSequence
> See also https://s.apache.org/beam-cross-language-io and BEAM-6485.
> CC [~robertwb] [~chamikara] [~thw]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to