Package org.apache.beam.sdk.options
Class PipelineOptions.UserAgentFactory
- java.lang.Object
-
- org.apache.beam.sdk.options.PipelineOptions.UserAgentFactory
-
- All Implemented Interfaces:
DefaultValueFactory<java.lang.String>
- Enclosing interface:
- PipelineOptions
public static class PipelineOptions.UserAgentFactory extends java.lang.Object implements DefaultValueFactory<java.lang.String>
Returns a user agent string constructed fromReleaseInfo.getName()
andReleaseInfo.getVersion()
, in the format[name]/[version]
.
-
-
Constructor Summary
Constructors Constructor Description UserAgentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
create(PipelineOptions options)
Creates a default value for a getter marked withDefault.InstanceFactory
.
-
-
-
Method Detail
-
create
public java.lang.String create(PipelineOptions options)
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<java.lang.String>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-
-