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 a partition.
-
#field ⇒ String
[Experimental] [Optional] If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field.
-
#require_partition_filter ⇒ Boolean
(also: #require_partition_filter?)
[Experimental] [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
-
#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
3429 3430 3431 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3429 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expiration_ms ⇒ Fixnum
[Optional] Number of milliseconds for which to keep the storage for a
partition.
Corresponds to the JSON property expirationMs
3406 3407 3408 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3406 def expiration_ms @expiration_ms end |
#field ⇒ String
[Experimental] [Optional] If not set, the table is partitioned by pseudo
column '_PARTITIONTIME'; if set, the table is 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
3414 3415 3416 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3414 def field @field end |
#require_partition_filter ⇒ Boolean Also known as: require_partition_filter?
[Experimental] [Optional] If set to true, queries over this table require a
partition filter that can be used for partition elimination to be specified.
Corresponds to the JSON property requirePartitionFilter
3420 3421 3422 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3420 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
3427 3428 3429 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3427 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3434 3435 3436 3437 3438 3439 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3434 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 |