beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Altay (JIRA)" <>
Subject [jira] [Updated] (BEAM-3736) Add SetUp() and TearDown() for CombineFns
Date Fri, 23 Feb 2018 00:27:00 GMT


Ahmet Altay updated BEAM-3736:
    Component/s: beam-model

> Add SetUp() and TearDown() for CombineFns
> -----------------------------------------
>                 Key: BEAM-3736
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: beam-model, sdk-py-core
>            Reporter: Chuan Yu Foo
>            Assignee: Ahmet Altay
>            Priority: Major
> I have a CombineFn that has a large amount of state that needs to be loaded once before
it can add_input or merge_combiners (for example, the CombineFn might load up a large lookup
table used for combining). 
> Right now, to initialise this state, for each of the methods, I check if the state has
already been initialised, and if not, I initialise it. It would be nice if CombineFn provided
a SetUp() method that is called once to initialise this state (and a corresponding TearDown()
method to clean up this state if necessary).

This message was sent by Atlassian JIRA

View raw message