Class: Google::Apis::BigqueryV2::TimePartitioning
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TimePartitioning
- 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
Instance Attribute Summary collapse
-
#expiration_ms ⇒ Fixnum
[Optional] Number of milliseconds for which to keep the storage for partitions in the table.
-
#field ⇒ String
[Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type.
-
#require_partition_filter ⇒ Boolean
(also: #require_partition_filter?)
Corresponds to the JSON property
requirePartitionFilter
. -
#type ⇒ String
[Required] The only type supported is DAY, which will generate one partition per day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimePartitioning
constructor
A new instance of TimePartitioning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimePartitioning
Returns a new instance of TimePartitioning.
5638 5639 5640 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5638 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expiration_ms ⇒ Fixnum
[Optional] Number of milliseconds for which to keep the storage for partitions
in the table. The storage in a partition will have an expiration time of its
partition time plus this value.
Corresponds to the JSON property expirationMs
5615 5616 5617 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5615 def expiration_ms @expiration_ms end |
#field ⇒ String
[Beta] [Optional] If not set, the table is partitioned by pseudo column,
referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE'
as DATE type. If field is specified, the table is instead partitioned by this
field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be
NULLABLE or REQUIRED.
Corresponds to the JSON property field
5624 5625 5626 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5624 def field @field end |
#require_partition_filter ⇒ Boolean Also known as: require_partition_filter?
Corresponds to the JSON property requirePartitionFilter
5629 5630 5631 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5629 def require_partition_filter @require_partition_filter end |
#type ⇒ String
[Required] The only type supported is DAY, which will generate one partition
per day.
Corresponds to the JSON property type
5636 5637 5638 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5636 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5643 5644 5645 5646 5647 5648 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5643 def update!(**args) @expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms) @field = args[:field] if args.key?(:field) @require_partition_filter = args[:require_partition_filter] if args.key?(:require_partition_filter) @type = args[:type] if args.key?(:type) end |