Package org.apache.beam.runners.direct
Class DirectOptions.AvailableParallelismFactory
- java.lang.Object
-
- org.apache.beam.runners.direct.DirectOptions.AvailableParallelismFactory
-
- All Implemented Interfaces:
org.apache.beam.sdk.options.DefaultValueFactory<java.lang.Integer>
- Enclosing interface:
- DirectOptions
public static class DirectOptions.AvailableParallelismFactory extends java.lang.Object implements org.apache.beam.sdk.options.DefaultValueFactory<java.lang.Integer>ADefaultValueFactorythat returns the result ofRuntime.availableProcessors()from thecreate(PipelineOptions)method. UsesRuntime.getRuntime()to obtain theRuntime.
-
-
Constructor Summary
Constructors Constructor Description AvailableParallelismFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integercreate(org.apache.beam.sdk.options.PipelineOptions options)
-