Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
This class identifies a Cloud Bigtable Table. More...
#include <google/cloud/bigtable/table_resource.h>
Public Member Functions | |
TableResource (InstanceResource instance, std::string table_id) | |
Constructs a TableResource object identified by the given instance and table_id . More... | |
TableResource (std::string project_id, std::string instance_id, std::string table_id) | |
Constructs a TableResource object identified by the given IDs. More... | |
InstanceResource const & | instance () const |
Returns the InstanceResource containing this table. More... | |
std::string const & | table_id () const |
Returns the Table ID. More... | |
std::string | FullName () const |
Returns the fully qualified table name as a string of the form: "projects/<project-id>/instances/<instance-id>/tables/<table-id>". More... | |
Friends | |
std::ostream & | operator<< (std::ostream &, TableResource const &) |
Output the FullName() format. More... | |
Equality operators | |
bool | operator== (TableResource const &a, TableResource const &b) |
bool | operator!= (TableResource const &a, TableResource const &b) |
This class identifies a Cloud Bigtable Table.
Bigtable stores data in massively scalable tables, each of which is a sorted key/value map. A Cloud Bigtable table is identified by the instance it is contained in and its table_id
.
google::cloud::bigtable::TableResource::TableResource | ( | InstanceResource | instance, |
std::string | table_id | ||
) |
Constructs a TableResource object identified by the given instance
and table_id
.
google::cloud::bigtable::TableResource::TableResource | ( | std::string | project_id, |
std::string | instance_id, | ||
std::string | table_id | ||
) |
Constructs a TableResource object identified by the given IDs.
This is equivalent to first constructing an InstanceResource
from the given project_id
and instance_id
arguments and then calling the TableResource(InstanceResource, std::string)
constructor.
std::string google::cloud::bigtable::TableResource::FullName | ( | ) | const |
Returns the fully qualified table name as a string of the form: "projects/<project-id>/instances/<instance-id>/tables/<table-id>".
|
inline |
Returns the InstanceResource
containing this table.
|
inline |
Returns the Table ID.
|
friend |
|
friend |
Output the FullName()
format.
|
friend |