Class: Google::Apis::BigqueryV2::BigtableOptions

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BigtableOptions

Returns a new instance of BigtableOptions.



620
621
622
# File 'generated/google/apis/bigquery_v2/classes.rb', line 620

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

Instance Attribute Details

#column_familiesArray<Google::Apis::BigqueryV2::BigtableColumnFamily>

[Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the 'type' field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable. Corresponds to the JSON property columnFamilies



602
603
604
# File 'generated/google/apis/bigquery_v2/classes.rb', line 602

def column_families
  @column_families
end

#ignore_unspecified_column_familiesBoolean Also known as: ignore_unspecified_column_families?

[Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false. Corresponds to the JSON property ignoreUnspecifiedColumnFamilies

Returns:

  • (Boolean)


609
610
611
# File 'generated/google/apis/bigquery_v2/classes.rb', line 609

def ignore_unspecified_column_families
  @ignore_unspecified_column_families
end

#read_rowkey_as_stringBoolean Also known as: read_rowkey_as_string?

[Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false. Corresponds to the JSON property readRowkeyAsString

Returns:

  • (Boolean)


617
618
619
# File 'generated/google/apis/bigquery_v2/classes.rb', line 617

def read_rowkey_as_string
  @read_rowkey_as_string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



625
626
627
628
629
# File 'generated/google/apis/bigquery_v2/classes.rb', line 625

def update!(**args)
  @column_families = args[:column_families] if args.key?(:column_families)
  @ignore_unspecified_column_families = args[:ignore_unspecified_column_families] if args.key?(:ignore_unspecified_column_families)
  @read_rowkey_as_string = args[:read_rowkey_as_string] if args.key?(:read_rowkey_as_string)
end