public static class DirectOptions.AvailableParallelismFactory
extends java.lang.Object
implements org.apache.beam.sdk.options.DefaultValueFactory<java.lang.Integer>
DefaultValueFactory that returns the result of Runtime.availableProcessors()
from the create(PipelineOptions) method. Uses Runtime.getRuntime() to obtain
the Runtime.| Constructor and Description |
|---|
AvailableParallelismFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
create(org.apache.beam.sdk.options.PipelineOptions options) |