Class: Google::Apis::BigqueryV2::BigtableColumn

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) ⇒ BigtableColumn

Returns a new instance of BigtableColumn.



378
379
380
# File 'generated/google/apis/bigquery_v2/classes.rb', line 378

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

Instance Attribute Details

#encodingString

[Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. 'encoding' can also be set at the column family level. However, the setting at this level takes precedence if 'encoding' is set at both levels. Corresponds to the JSON property encoding

Returns:

  • (String)


333
334
335
# File 'generated/google/apis/bigquery_v2/classes.rb', line 333

def encoding
  @encoding
end

#field_nameString

[Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries. Corresponds to the JSON property fieldName

Returns:

  • (String)


340
341
342
# File 'generated/google/apis/bigquery_v2/classes.rb', line 340

def field_name
  @field_name
end

#only_read_latestBoolean Also known as: only_read_latest?

[Optional] If this is set, only the latest version of value in this column are exposed. 'onlyReadLatest' can also be set at the column family level. However, the setting at this level takes precedence if 'onlyReadLatest' is set at both levels. Corresponds to the JSON property onlyReadLatest

Returns:

  • (Boolean)


348
349
350
# File 'generated/google/apis/bigquery_v2/classes.rb', line 348

def only_read_latest
  @only_read_latest
end

#qualifier_encodedString

[Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF- 8 string, it can be specified in the qualifier_string field. Otherwise, a base- 64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name. Corresponds to the JSON property qualifierEncoded NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


361
362
363
# File 'generated/google/apis/bigquery_v2/classes.rb', line 361

def qualifier_encoded
  @qualifier_encoded
end

#qualifier_stringString

Corresponds to the JSON property qualifierString

Returns:

  • (String)


366
367
368
# File 'generated/google/apis/bigquery_v2/classes.rb', line 366

def qualifier_string
  @qualifier_string
end

#typeString

[Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels. Corresponds to the JSON property type

Returns:

  • (String)


376
377
378
# File 'generated/google/apis/bigquery_v2/classes.rb', line 376

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



383
384
385
386
387
388
389
390
# File 'generated/google/apis/bigquery_v2/classes.rb', line 383

def update!(**args)
  @encoding = args[:encoding] if args.key?(:encoding)
  @field_name = args[:field_name] if args.key?(:field_name)
  @only_read_latest = args[:only_read_latest] if args.key?(:only_read_latest)
  @qualifier_encoded = args[:qualifier_encoded] if args.key?(:qualifier_encoded)
  @qualifier_string = args[:qualifier_string] if args.key?(:qualifier_string)
  @type = args[:type] if args.key?(:type)
end