Cloud Bigtable API - Class Google::Cloud::Bigtable::ColumnFamily (v2.11.0)

Reference documentation and code samples for the Cloud Bigtable API class Google::Cloud::Bigtable::ColumnFamily.

ColumnFamily

A set of columns within a table that share a common configuration.

Inherits

  • Object

Example

require "google/cloud/bigtable"

bigtable = Google::Cloud::Bigtable.new

instance = bigtable.instance "my-instance"
table = instance.table "my-table"

column_family = table.column_families["cf2"]
puts column_family.gc_rule

Methods

#gc_rule

def gc_rule() -> Google::Cloud::Bigtable::GcRule, nil

The garbage collection rule to be used for the column family. Optional. The service default value will be used when not specified.

#gc_rule=

def gc_rule=(value) -> Google::Cloud::Bigtable::GcRule, nil

The garbage collection rule to be used for the column family. Optional. The service default value will be used when not specified.

Parameter

#name

def name() -> String

Name of the column family.

Returns
  • (String)