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

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

                Author: ASF GitHub Bot
            Created on: 05/Oct/18 23:09
            Start Date: 05/Oct/18 23:09
    Worklog Time Spent: 10m 
      Work Description: aaltay closed pull request #6596: [BEAM-3612] Add way 
to query emitter registration
URL: https://github.com/apache/beam/pull/6596
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sdks/go/pkg/beam/core/runtime/exec/emit.go 
b/sdks/go/pkg/beam/core/runtime/exec/emit.go
index 9b478219b9d..b26c5ddd6c2 100644
--- a/sdks/go/pkg/beam/core/runtime/exec/emit.go
+++ b/sdks/go/pkg/beam/core/runtime/exec/emit.go
@@ -53,6 +53,12 @@ func RegisterEmitter(t reflect.Type, maker 
func(ElementProcessor) ReusableEmitte
        emitters[key] = maker
 }
 
+// IsEmitterRegistered returns whether an emitter maker has already been 
registered.
+func IsEmitterRegistered(t reflect.Type) bool {
+       _, exists := emitters[t.String()]
+       return exists
+}
+
 func makeEmit(t reflect.Type, n ElementProcessor) ReusableEmitter {
        emittersMu.Lock()
        maker, exists := emitters[t.String()]


 

----------------------------------------------------------------
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: 151915)
    Time Spent: 50m  (was: 40m)

> Make it easy to generate type-specialized Go SDK reflectx.Funcs
> ---------------------------------------------------------------
>
>                 Key: BEAM-3612
>                 URL: https://issues.apache.org/jira/browse/BEAM-3612
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-go
>            Reporter: Henning Rohde
>            Assignee: Robert Burke
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>




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

Reply via email to