Class: Google::Apis::DatastreamV1::BigQueryPartitioning

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BigQueryPartitioning

Returns a new instance of BigQueryPartitioning.



301
302
303
# File 'lib/google/apis/datastream_v1/classes.rb', line 301

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ingestion_time_partitionGoogle::Apis::DatastreamV1::IngestionTimePartition

Ingestion time partitioning. see https://cloud.google.com/bigquery/docs/ partitioned-tables#ingestion_time Corresponds to the JSON property ingestionTimePartition



281
282
283
# File 'lib/google/apis/datastream_v1/classes.rb', line 281

def ingestion_time_partition
  @ingestion_time_partition
end

#integer_range_partitionGoogle::Apis::DatastreamV1::IntegerRangePartition

Integer range partitioning. see https://cloud.google.com/bigquery/docs/ partitioned-tables#integer_range Corresponds to the JSON property integerRangePartition



287
288
289
# File 'lib/google/apis/datastream_v1/classes.rb', line 287

def integer_range_partition
  @integer_range_partition
end

#require_partition_filterBoolean Also known as: require_partition_filter?

Optional. If true, queries over the table require a partition filter. Corresponds to the JSON property requirePartitionFilter

Returns:

  • (Boolean)


292
293
294
# File 'lib/google/apis/datastream_v1/classes.rb', line 292

def require_partition_filter
  @require_partition_filter
end

#time_unit_partitionGoogle::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



299
300
301
# File 'lib/google/apis/datastream_v1/classes.rb', line 299

def time_unit_partition
  @time_unit_partition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



306
307
308
309
310
311
# File 'lib/google/apis/datastream_v1/classes.rb', line 306

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