Class: Google::Apis::DatastreamV1::BigQueryPartitioning
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::BigQueryPartitioning
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
BigQuery partitioning configuration.
Instance Attribute Summary collapse
-
#ingestion_time_partition ⇒ Google::Apis::DatastreamV1::IngestionTimePartition
Ingestion time partitioning.
-
#integer_range_partition ⇒ Google::Apis::DatastreamV1::IntegerRangePartition
Integer range partitioning.
-
#require_partition_filter ⇒ Boolean
(also: #require_partition_filter?)
Optional.
-
#time_unit_partition ⇒ Google::Apis::DatastreamV1::TimeUnitPartition
Time unit column partitioning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BigQueryPartitioning
constructor
A new instance of BigQueryPartitioning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BigQueryPartitioning
Returns a new instance of BigQueryPartitioning.
275 276 277 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ingestion_time_partition ⇒ Google::Apis::DatastreamV1::IngestionTimePartition
Ingestion time partitioning. see https://cloud.google.com/bigquery/docs/
partitioned-tables#ingestion_time
Corresponds to the JSON property ingestionTimePartition
255 256 257 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 255 def ingestion_time_partition @ingestion_time_partition end |
#integer_range_partition ⇒ Google::Apis::DatastreamV1::IntegerRangePartition
Integer range partitioning. see https://cloud.google.com/bigquery/docs/
partitioned-tables#integer_range
Corresponds to the JSON property integerRangePartition
261 262 263 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 261 def integer_range_partition @integer_range_partition end |
#require_partition_filter ⇒ Boolean Also known as: require_partition_filter?
Optional. If true, queries over the table require a partition filter.
Corresponds to the JSON property requirePartitionFilter
266 267 268 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 266 def require_partition_filter @require_partition_filter end |
#time_unit_partition ⇒ Google::Apis::DatastreamV1::TimeUnitPartition
Time unit column partitioning. see https://cloud.google.com/bigquery/docs/
partitioned-tables#date_timestamp_partitioned_tables
Corresponds to the JSON property timeUnitPartition
273 274 275 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 273 def time_unit_partition @time_unit_partition end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
280 281 282 283 284 285 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 280 def update!(**args) @ingestion_time_partition = args[:ingestion_time_partition] if args.key?(:ingestion_time_partition) @integer_range_partition = args[:integer_range_partition] if args.key?(:integer_range_partition) @require_partition_filter = args[:require_partition_filter] if args.key?(:require_partition_filter) @time_unit_partition = args[:time_unit_partition] if args.key?(:time_unit_partition) end |