class Google::Apis::BigqueryV2::TimePartitioning

Attributes

expiration_ms[RW]
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]

field[RW]
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]

require_partition_filter[RW]

Corresponds to the JSON property `requirePartitionFilter` @return [Boolean]

require_partition_filter?[RW]

Corresponds to the JSON property `requirePartitionFilter` @return [Boolean]

type[RW]
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

new(**args) click to toggle source
# File lib/google/apis/bigquery_v2/classes.rb, line 7033
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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