ColumnFamily(column_family_id, table, gc_rule=None)
Representation of a Google Cloud Bigtable Column Family.
We can use a ColumnFamily
to:
create
itselfupdate
itselfdelete
itself
Parameters
Name | Description |
column_family_id |
str
The ID of the column family. Must be of the form |
table |
Table
The table that owns the column family. |
gc_rule |
(Optional) The garbage collection settings for this column family. |
Properties
name
Column family name used in requests.
For example:
.. literalinclude:: snippets_table.py :start-after: [START bigtable_column_family_name] :end-before: [END bigtable_column_family_name] :dedent: 4
"projects/../zones/../clusters/../tables/../columnFamilies/.."
Type | Description |
str | The column family name. |
Methods
create
create()
Create this column family.
For example:
.. literalinclude:: snippets_table.py :start-after: [START bigtable_create_column_family] :end-before: [END bigtable_create_column_family] :dedent: 4
delete
delete()
Delete this column family.
For example:
.. literalinclude:: snippets_table.py :start-after: [START bigtable_delete_column_family] :end-before: [END bigtable_delete_column_family] :dedent: 4
to_pb
to_pb()
Converts the column family to a protobuf.
Type | Description |
| The converted current object. |
update
update()
Update this column family.
For example:
.. literalinclude:: snippets_table.py :start-after: [START bigtable_update_column_family] :end-before: [END bigtable_update_column_family] :dedent: 4