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