[
https://issues.apache.org/jira/browse/BEAM-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15863967#comment-15863967
]
Aljoscha Krettek commented on BEAM-1461:
----------------------------------------
{{DoFn.prepareForProcessing()}} is only invoked once, before executing a
pipeline using a Runner. The {{@StartBundle}} method is invoked before
processing a bundle, this can happen several times if you have many bundles.
[~davor] you think we should maybe add better JavaDoc to
{{DoFn.prepareForProcessing()}}? If not, I think we should close this issue.
What do you think, [~mingmxu]?
> duplication with StartBundle and prepareForProcessing in DoFn
> -------------------------------------------------------------
>
> Key: BEAM-1461
> URL: https://issues.apache.org/jira/browse/BEAM-1461
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Reporter: Xu Mingmin
> Assignee: Davor Bonaci
>
> There're one annotation `StartBundle`, and one public function
> `prepareForProcessing` in DoFn, which are called both before
> `ProcessElement`. It's confused which one should be implemented in a subclass.
> The call sequence seems as:
> prepareForProcessing -> StartBundle -> processElement
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)