Class: Google::Apis::DataflowV1b3::BucketOptions
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::BucketOptions
- 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
BucketOptions
describes the bucket boundaries used in the histogram.
Instance Attribute Summary collapse
-
#exponential ⇒ Google::Apis::DataflowV1b3::Base2Exponent
Exponential buckets where the growth factor between buckets is
2**(2**-scale)
. -
#linear ⇒ Google::Apis::DataflowV1b3::Linear
Linear buckets with the following boundaries for indices in 0 to n-1.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BucketOptions
constructor
A new instance of BucketOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BucketOptions
Returns a new instance of BucketOptions.
328 329 330 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 328 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exponential ⇒ Google::Apis::DataflowV1b3::Base2Exponent
Exponential buckets where the growth factor between buckets is 2**(2**-scale)
. e.g. for scale=1
growth factor is 2**(2**(-1))=sqrt(2)
. n
buckets will
have the following boundaries. - 0th: [0, gf) - i in [1, n-1]: [gf^(i), gf^(i+
1))
Corresponds to the JSON property exponential
320 321 322 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 320 def exponential @exponential end |
#linear ⇒ Google::Apis::DataflowV1b3::Linear
Linear buckets with the following boundaries for indices in 0 to n-1. - i in [
0, n-1]: [start + (i)*width, start + (i+1)*width)
Corresponds to the JSON property linear
326 327 328 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 326 def linear @linear end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
333 334 335 336 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 333 def update!(**args) @exponential = args[:exponential] if args.key?(:exponential) @linear = args[:linear] if args.key?(:linear) end |