Class: Google::Apis::BigqueryV2::RangePartitioning

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb

Defined Under Namespace

Classes: Range

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RangePartitioning

Returns a new instance of RangePartitioning.


4961
4962
4963
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4961

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

Instance Attribute Details

#fieldString

[TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64. Corresponds to the JSON property field

Returns:

  • (String)

4954
4955
4956
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4954

def field
  @field
end

#rangeGoogle::Apis::BigqueryV2::RangePartitioning::Range

[TrustedTester] [Required] Defines the ranges for range partitioning. Corresponds to the JSON property range


4959
4960
4961
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4959

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4966
4967
4968
4969
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4966

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