Class: Google::Apis::BigqueryV2::ParquetOptions

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

Parquet Options for load and make external tables.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParquetOptions

Returns a new instance of ParquetOptions.



6880
6881
6882
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6880

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

Instance Attribute Details

#enable_list_inferenceBoolean Also known as: enable_list_inference?

Optional. Indicates whether to use schema inference specifically for Parquet LIST logical type. Corresponds to the JSON property enableListInference

Returns:

  • (Boolean)


6865
6866
6867
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6865

def enable_list_inference
  @enable_list_inference
end

#enum_as_stringBoolean Also known as: enum_as_string?

Optional. Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. Corresponds to the JSON property enumAsString

Returns:

  • (Boolean)


6872
6873
6874
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6872

def enum_as_string
  @enum_as_string
end

#map_target_typeString

Optional. Indicates how to represent a Parquet map if present. Corresponds to the JSON property mapTargetType

Returns:

  • (String)


6878
6879
6880
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6878

def map_target_type
  @map_target_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6885
6886
6887
6888
6889
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6885

def update!(**args)
  @enable_list_inference = args[:enable_list_inference] if args.key?(:enable_list_inference)
  @enum_as_string = args[:enum_as_string] if args.key?(:enum_as_string)
  @map_target_type = args[:map_target_type] if args.key?(:map_target_type)
end