Table
User-friendly container for Google Cloud Bigtable Table.
class google.cloud.bigtable.table.ClusterState(replication_state)
Bases: object
Representation of a Cluster State.
Parameters
replication_state (int) – enum value for cluster state Possible replications_state values are 0 for STATE_NOT_KNOWN: The replication state of the table is unknown in this cluster. 1 for INITIALIZING: The cluster was recently created, and the table must finish copying over pre-existing data from other clusters before it can begin receiving live replication updates and serving
Data APIrequests. 2 for PLANNED_MAINTENANCE: The table is temporarily unable to serveData APIrequests from this cluster due to planned internal maintenance. 3 for UNPLANNED_MAINTENANCE: The table is temporarily unable to serveData APIrequests from this cluster due to unplanned or emergency maintenance. 4 for READY: The table can serveData APIrequests from this cluster. Depending on replication delay, reads may not immediately reflect the state of the table in other clusters.
_eq_(other)
Checks if two ClusterState instances(self and other) are equal on the basis of instance variable ‘replication_state’.
Parameters
other (ClusterState) – ClusterState instance to compare with.
Return type
Boolean value
Returns
True if two cluster state instances have same replication_state.
_ne_(other)
Checks if two ClusterState instances(self and other) are not equal.
Parameters
other (ClusterState.) – ClusterState instance to compare with.
Return type
Boolean value.
Returns
True if two cluster state instances are not equal.
_repr_()
Representation of cluster state instance as string value for cluster state.
Return type
ClusterState instance
Returns
ClusterState instance as representation of string value for cluster state.
google.cloud.bigtable.table.DEFAULT_RETRY( = <google.api_core.retry.Retry object )
The default retry strategy to be used on retry-able errors.
Used by mutate_rows().
google.cloud.bigtable.table.RETRYABLE_MUTATION_ERRORS( = (<class 'google.api_core.exceptions.Aborted'>, <class 'google.api_core.exceptions.DeadlineExceeded'>, <class 'google.api_core.exceptions.ServiceUnavailable'>, <class 'google.api_core.exceptions.InternalServerError'> )
Errors which can be retried during row mutation.
class google.cloud.bigtable.table.Table(table_id, instance, mutation_timeout=None, app_profile_id=None)
Bases: object
Representation of a Google Cloud Bigtable Table.
NOTE: We don’t define any properties on a table other than the name.
The only other fields are column_families and granularity,
The column_families are not stored locally and
granularity is an enum with only one value.
We can use a Table to: