Class: Google::Apis::DataflowV1b3::ReportedParallelism

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportedParallelism

Returns a new instance of ReportedParallelism.



4363
4364
4365
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4363

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_infiniteBoolean 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

Returns:

  • (Boolean)


4355
4356
4357
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4355

def is_infinite
  @is_infinite
end

#valueFloat

Specifies the level of parallelism in case it is finite. Corresponds to the JSON property value

Returns:

  • (Float)


4361
4362
4363
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4361

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4368
4369
4370
4371
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4368

def update!(**args)
  @is_infinite = args[:is_infinite] if args.key?(:is_infinite)
  @value = args[:value] if args.key?(:value)
end