Class: Google::Apis::BigqueryV2::AvroOptions
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::AvroOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Options for external data sources.
Instance Attribute Summary collapse
-
#use_avro_logical_types ⇒ Boolean
(also: #use_avro_logical_types?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AvroOptions
constructor
A new instance of AvroOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AvroOptions
Returns a new instance of AvroOptions.
593 594 595 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 593 def initialize(**args) update!(**args) end |
Instance Attribute Details
#use_avro_logical_types ⇒ Boolean Also known as: use_avro_logical_types?
Optional. If sourceFormat is set to "AVRO", indicates whether to interpret
logical types as the corresponding BigQuery data type (for example, TIMESTAMP),
instead of using the raw type (for example, INTEGER).
Corresponds to the JSON property useAvroLogicalTypes
590 591 592 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 590 def use_avro_logical_types @use_avro_logical_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
598 599 600 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 598 def update!(**args) @use_avro_logical_types = args[:use_avro_logical_types] if args.key?(:use_avro_logical_types) end |