Class 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>
    A DefaultValueFactory that returns the result of Runtime.availableProcessors() from the create(PipelineOptions) method. Uses Runtime.getRuntime() to obtain the Runtime.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer create​(org.apache.beam.sdk.options.PipelineOptions options)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AvailableParallelismFactory

        public AvailableParallelismFactory()
    • Method Detail

      • create

        public java.lang.Integer create​(org.apache.beam.sdk.options.PipelineOptions options)
        Specified by:
        create in interface org.apache.beam.sdk.options.DefaultValueFactory<java.lang.Integer>