Class: Google::Cloud::Bigtable::ColumnFamily

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/bigtable/column_family.rb

Overview

ColumnFamily

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

Examples:

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

Instance Attribute Summary collapse

Instance Attribute Details

#gc_ruleGoogle::Cloud::Bigtable::GcRule?

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



53
54
55
# File 'lib/google/cloud/bigtable/column_family.rb', line 53

def gc_rule
  @gc_rule
end

#nameString (readonly)

Name of the column family.

Returns:

  • (String)


43
44
45
# File 'lib/google/cloud/bigtable/column_family.rb', line 43

def name
  @name
end