Package org.apache.beam.sdk.options
Class PipelineOptions.AtomicLongFactory
java.lang.Object
org.apache.beam.sdk.options.PipelineOptions.AtomicLongFactory
- All Implemented Interfaces:
DefaultValueFactory<Long>
- Enclosing interface:
PipelineOptions
public static class PipelineOptions.AtomicLongFactory
extends Object
implements DefaultValueFactory<Long>
DefaultValueFactory
which supplies an ID that is guaranteed to be unique within the
given process.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory
.
-
Constructor Details
-
AtomicLongFactory
public AtomicLongFactory()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<Long>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-