lostluck commented on code in PR #22846:
URL: https://github.com/apache/beam/pull/22846#discussion_r954340508
##########
sdks/go/test/integration/primitives/state.go:
##########
@@ -126,3 +132,120 @@ func BagStateParDo() *beam.Pipeline {
return p
}
+
+type combiningStateFn struct {
+ State0 state.Combining[int, int, int]
+ State1 state.Combining[int, int, int]
+ State2 state.Combining[string, string, int]
+ State3 state.Combining[string, string, int]
+ State4 state.Combining[int, int, int]
+}
+
+type accum1 struct{}
+
+func (ac *accum1) MergeAccumulators(a, b int) int {
+ return a + b
+}
+
+type accum2 struct{}
Review Comment:
accum* isn't a good name for these structs since they're combineFns and not
accumulators. comb* would be better as prefix.
--
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]