Class: Google::Cloud::Bigtable::Table::ColumnFamilyMap
- Inherits:
-
Hash
- Object
- Hash
- Google::Cloud::Bigtable::Table::ColumnFamilyMap
- Defined in:
- lib/google/cloud/bigtable/table/column_family_map.rb
Overview
Table::ColumnFamilyMap is a Hash with column_family name and grpc object. It is used to create instance.
Instance Method Summary collapse
-
#add(name, gc_rule) ⇒ Object
Add column family.
-
#remove(name) ⇒ Google::Bigtable::Admin::V2::ColumnFamily
Remove column family from map.
Instance Method Details
#add(name, gc_rule) ⇒ Object
Add column family.
50 51 52 53 54 |
# File 'lib/google/cloud/bigtable/table/column_family_map.rb', line 50 def add name, gc_rule self[name] = Google::Bigtable::Admin::V2::ColumnFamily.new( gc_rule: gc_rule.to_grpc ) end |
#remove(name) ⇒ Google::Bigtable::Admin::V2::ColumnFamily
Remove column family from map.
61 62 63 |
# File 'lib/google/cloud/bigtable/table/column_family_map.rb', line 61 def remove name delete(name) end |