[
https://issues.apache.org/jira/browse/BEAM-6255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16734702#comment-16734702
]
Robert Burke commented on BEAM-6255:
------------------------------------
Might be better to generate a dedicated struct with appropriate
StartBundle/AddInput/MergeAccumulators/Extract Output/FinishBundle methods that
have a specialized cache for this. It would likely lead to better map key
lookup,
> Support emit func output in the Go SDK's CombineFn ExtractOutput
> -----------------------------------------------------------------
>
> Key: BEAM-6255
> URL: https://issues.apache.org/jira/browse/BEAM-6255
> Project: Beam
> Issue Type: New Feature
> Components: sdk-go
> Reporter: Robert Burke
> Priority: Major
>
> When taking a sample or other filter, it consider supporting emitting values
> with an emit func from the accumulator rather than extract a single value.
> Otherwise general accumulators tend to go through awkward reflective code to
> construct the slice.
> Either the single value return or an emitted return should be supported.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)