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

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

Defined Under Namespace

Classes: Range

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RangePartitioning

Returns a new instance of RangePartitioning.



5322
5323
5324
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5322

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)


5315
5316
5317
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5315

def field
  @field
end

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

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



5320
5321
5322
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5320

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5327
5328
5329
5330
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5327

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