kamilwu commented on a change in pull request #13048:
URL: https://github.com/apache/beam/pull/13048#discussion_r503337032



##########
File path: sdks/python/apache_beam/transforms/core.py
##########
@@ -895,6 +897,15 @@ class CombineFn(WithTypeHints, HasDisplayData, 
urns.RunnerApiFn):
   def default_label(self):
     return self.__class__.__name__
 
+  def setup(self):
+    """Called to prepare an instance for combining.
+
+    This method can be useful if there is some state that needs to be loaded
+    before executing any of the other methods. The resources can then be
+    disposed in ``CombineFn.teardown``.

Review comment:
       Thanks.




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

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


Reply via email to