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

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

                Author: ASF GitHub Bot
            Created on: 27/Dec/18 15:28
            Start Date: 27/Dec/18 15:28
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on pull request #7316: [BEAM-6269] 
Cross-SDK transform expansion protocol.
URL: https://github.com/apache/beam/pull/7316#discussion_r244173610
 
 

 ##########
 File path: 
runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/ConstructionService.java
 ##########
 @@ -0,0 +1,214 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.runners.core.construction;
+
+import com.google.auto.service.AutoService;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.Iterables;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.Map;
+import java.util.ServiceLoader;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.apache.beam.model.construction.v1.ConstructionApi;
+import org.apache.beam.model.construction.v1.ConstructionServiceGrpc;
+import org.apache.beam.model.pipeline.v1.RunnerApi;
+import org.apache.beam.sdk.Pipeline;
+import org.apache.beam.sdk.transforms.PTransform;
+import org.apache.beam.sdk.values.PCollection;
+import org.apache.beam.sdk.values.PCollectionList;
+import org.apache.beam.sdk.values.PCollectionTuple;
+import org.apache.beam.sdk.values.PDone;
+import org.apache.beam.sdk.values.PValue;
+import org.apache.beam.sdk.values.TupleTag;
+import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.Server;
+import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.ServerBuilder;
+import org.apache.beam.vendor.grpc.v1_13_1.io.grpc.stub.StreamObserver;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/** A service that allows pipeline construction from a remote SDK. */
+public class ConstructionService extends 
ConstructionServiceGrpc.ConstructionServiceImplBase {
+
+  private static final Logger LOG = 
LoggerFactory.getLogger(ConstructionService.class);
+
+  /**
+   * A registrar that creates {@link TransformProvider} instances from {@link
+   * RunnerApi.FunctionSpec}s.
+   *
+   * <p>Transform authors have the ability to provide a registrar by creating 
a {@link
+   * ServiceLoader} entry and a concrete implementation of this interface.
+   *
+   * <p>It is optional but recommended to use one of the many build time tools 
such as {@link
+   * AutoService} to generate the necessary META-INF files automatically.
 
 Review comment:
   I copied this text from the FileSystems provider. I think it's clear enough 
from context, but if not could update it in both places. 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 179115)
    Time Spent: 1.5h  (was: 1h 20m)

> Support mixed-language pipelines.
> ---------------------------------
>
>                 Key: BEAM-6269
>                 URL: https://issues.apache.org/jira/browse/BEAM-6269
>             Project: Beam
>          Issue Type: New Feature
>          Components: beam-model, runner-core, sdk-java-core, sdk-py-core
>            Reporter: Robert Bradshaw
>            Assignee: Kenneth Knowles
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>




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

Reply via email to