class Google::Apis::BigqueryV2::TimePartitioning
Attributes
- 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` @return [Fixnum]
- 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` @return [String]
Corresponds to the JSON property `requirePartitionFilter` @return [Boolean]
Corresponds to the JSON property `requirePartitionFilter` @return [Boolean]
- Required
-
The supported types are DAY, HOUR, MONTH, and YEAR, which will
generate one partition per day, hour, month, and year, respectively. When the type is not specified, the default behavior is DAY. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/bigquery_v2/classes.rb, line 7033 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/bigquery_v2/classes.rb, line 7038 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