Class: Google::Apis::DataflowV1b3::ReportedParallelism
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataflowV1b3::ReportedParallelism
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataflow_v1b3/classes.rb,
 generated/google/apis/dataflow_v1b3/representations.rb,
 generated/google/apis/dataflow_v1b3/representations.rb
Overview
Represents the level of parallelism in a WorkItem's input, reported by the worker.
Instance Attribute Summary collapse
- 
  
    
      #is_infinite  ⇒ Boolean 
    
    
      (also: #is_infinite?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specifies whether the parallelism is infinite. 
- 
  
    
      #value  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specifies the level of parallelism in case it is finite. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ReportedParallelism 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ReportedParallelism. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReportedParallelism
Returns a new instance of ReportedParallelism
| 2938 2939 2940 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2938 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#is_infinite ⇒ Boolean Also known as: is_infinite?
Specifies whether the parallelism is infinite. If true, "value" is
ignored.
Infinite parallelism means the service will assume that the work item
can always be split into more non-empty work items by dynamic splitting.
This is a work-around for lack of support for infinity by the current
JSON-based Java RPC stack.
Corresponds to the JSON property isInfinite
| 2930 2931 2932 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2930 def is_infinite @is_infinite end | 
#value ⇒ Float
Specifies the level of parallelism in case it is finite.
Corresponds to the JSON property value
| 2936 2937 2938 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2936 def value @value end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2943 2944 2945 2946 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2943 def update!(**args) @is_infinite = args[:is_infinite] if args.key?(:is_infinite) @value = args[:value] if args.key?(:value) end |