lostluck commented on code in PR #17673:
URL: https://github.com/apache/beam/pull/17673#discussion_r873082283


##########
sdks/go/test/load/sideinput/sideinput.go:
##########
@@ -51,11 +54,17 @@ func parseSyntheticConfig() synthetic.SourceConfig {
        }
 }
 
+// impToKV just turns an impulse signal into a KV instead of
+// adding a single value input version of RuntimeMonitor
+func impToKV(imp []byte, emit func([]byte, []byte)) {
+       emit(imp, imp)
+}
+
 type doFn struct {

Review Comment:
   The focus for this one is that it uses an iterator, so calling that one out, 
so it's easier to add a Dictionary based one later.



##########
sdks/go/test/load/sideinput/sideinput.go:
##########
@@ -51,11 +54,17 @@ func parseSyntheticConfig() synthetic.SourceConfig {
        }
 }
 
+// impToKV just turns an impulse signal into a KV instead of
+// adding a single value input version of RuntimeMonitor
+func impToKV(imp []byte, emit func([]byte, []byte)) {
+       emit(imp, imp)
+}
+
 type doFn struct {

Review Comment:
   The focus for this one is that it uses an iterator, so calling that one out, 
so it's easier to add a map based one later.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to