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.



8871
8872
8873
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8871

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

Instance Attribute Details

#fieldString

Required. The name of the column to partition the table on. It must be a top- level, INT64 column whose mode is NULLABLE or REQUIRED. Corresponds to the JSON property field

Returns:

  • (String)


8864
8865
8866
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8864

def field
  @field
end

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

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



8869
8870
8871
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8869

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8876
8877
8878
8879
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8876

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