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

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

                Author: ASF GitHub Bot
            Created on: 26/Apr/19 18:00
            Start Date: 26/Apr/19 18:00
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on pull request #8409: [BEAM-7157] 
Allow creation of BinaryCombineFn from lambdas.
URL: https://github.com/apache/beam/pull/8409#discussion_r279049138
 
 

 ##########
 File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/SerializableBiFunction.java
 ##########
 @@ -0,0 +1,34 @@
+/*
+ * 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.sdk.transforms;
+
+import java.io.Serializable;
+import java.util.function.BiFunction;
+
+/**
+ * A union of the {@link BiFunction} and {@link Serializable} interfaces.
+ *
+ * @param <FirstInputT> first input value type
+ * @param <SecondInputT> second input value type
+ * @param <OutputT> output value type
+ */
+@FunctionalInterface
+public interface SerializableBiFunction<FirstInputT, SecondInputT, OutputT>
+    extends BiFunction<FirstInputT, SecondInputT, OutputT>, Serializable {
+  // This class is empty, but required for creating serializable lambda 
expressions.
 
 Review comment:
   ```suggestion
     // This class is empty, but required for creating serializable lambda 
expression
   ```
 
----------------------------------------------------------------
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: 233683)
    Time Spent: 40m  (was: 0.5h)

> Allow creation of BinaryCombineFn from lambdas.
> -----------------------------------------------
>
>                 Key: BEAM-7157
>                 URL: https://issues.apache.org/jira/browse/BEAM-7157
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-core
>            Reporter: Robert Bradshaw
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




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

Reply via email to