Package org.apache.beam.sdk.options
Class PipelineOptions.AtomicLongFactory
- java.lang.Object
-
- org.apache.beam.sdk.options.PipelineOptions.AtomicLongFactory
-
- All Implemented Interfaces:
DefaultValueFactory<java.lang.Long>
- Enclosing interface:
- PipelineOptions
public static class PipelineOptions.AtomicLongFactory extends java.lang.Object implements DefaultValueFactory<java.lang.Long>
DefaultValueFactory
which supplies an ID that is guaranteed to be unique within the given process.
-
-
Constructor Summary
Constructors Constructor Description AtomicLongFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
create(PipelineOptions options)
Creates a default value for a getter marked withDefault.InstanceFactory
.
-
-
-
Method Detail
-
create
public java.lang.Long 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.Long>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-
-