beam-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Groh <tg...@google.com>
Subject Re: Is there a way to access PipelineOptions in DoFn.Setup?
Date Tue, 10 Oct 2017 20:58:44 GMT
It is desired but unimplemented. See
https://issues.apache.org/jira/browse/BEAM-950

On Tue, Oct 10, 2017 at 1:45 PM, Eugene Kirpichov <kirpichov@google.com>
wrote:

> I don't think there is a way to do this, and I agree that this is an
> oversight. Feel free to file a JIRA.
> Depending on what you're doing, using a ValueProvider may be sufficient -
> their run-time values will be accessible in Setup.
>
> On Tue, Oct 10, 2017 at 1:37 PM Derek Hao Hu <phoenixinter@gmail.com>
> wrote:
>
>> Hi,
>>
>> I'm trying to find a way to access PipelineOptions in [DoFn.Setup](
>> https://beam.apache.org/documentation/sdks/javadoc/2.1.0/org/apache/beam/
>> sdk/transforms/DoFn.Setup.html). Is there an easy way to do so? It seems
>> we don't have things similar to StartBundleContext, ProcessContext or
>> FinishBundleContext in Setup.
>>
>> Thanks,
>> --
>> Derek Hao Hu
>>
>> Software Engineer | Snapchat
>> Snap Inc.
>>
>

Mime
View raw message