Class DataClient (2.13.0)

Connects to Cloud Bigtable's data manipulation APIs.

This class is used by the Cloud Bigtable wrappers to access Cloud Bigtable. Multiple bigtable::Table objects may share a connection via a single DataClient object. The DataClient object is configured at construction time, this configuration includes the credentials, access endpoints, default timeouts, and other gRPC configuration options. This is an interface class because it is also used as a dependency injection point in some of the tests.

Cost

Applications should avoid unnecessarily creating new objects of type DataClient. Creating a new object of this type typically requires connecting to the Cloud Bigtable servers, and performing the authentication workflows with Google Cloud Platform. These operations can take many milliseconds, therefore applications should try to reuse the same DataClient instances when possible.

google::cloud::bigtable::DataConnection is the preferred way to communicate with the Bigtable Data API. To migrate existing code, see Migrating from DataClient.

Functions

MutateRow(grpc::ClientContext *, google::bigtable::v2::MutateRowRequest const &, google::bigtable::v2::MutateRowResponse *)

the google.bigtable.v2.Bigtable wrappers.

Parameters
NameDescription
context grpc::ClientContext *
request google::bigtable::v2::MutateRowRequest const &
response google::bigtable::v2::MutateRowResponse *
Returns
TypeDescription
grpc::Status

AsyncMutateRow(grpc::ClientContext *, google::bigtable::v2::MutateRowRequest const &, grpc::CompletionQueue *)

the google.bigtable.v2.Bigtable wrappers.

Parameters
NameDescription
context grpc::ClientContext *
request google::bigtable::v2::MutateRowRequest const &
cq grpc::CompletionQueue *
Returns
TypeDescription
std::unique_ptr< grpc::ClientAsyncResponseReaderInterface< google::bigtable::v2::MutateRowResponse > >

CheckAndMutateRow(grpc::ClientContext *, google::bigtable::v2::CheckAndMutateRowRequest const &, google::bigtable::v2::CheckAndMutateRowResponse *)

the google.bigtable.v2.Bigtable wrappers.

Parameters
NameDescription
context grpc::ClientContext *
request google::bigtable::v2::CheckAndMutateRowRequest const &
response google::bigtable::v2::CheckAndMutateRowResponse *
Returns
TypeDescription
grpc::Status

AsyncCheckAndMutateRow(grpc::ClientContext *, google::bigtable::v2::CheckAndMutateRowRequest const &, grpc::CompletionQueue *)

the google.bigtable.v2.Bigtable wrappers.

Parameters
NameDescription
context grpc::ClientContext *
request google::bigtable::v2::CheckAndMutateRowRequest const &
cq grpc::CompletionQueue *
Returns
TypeDescription
std::unique_ptr< grpc::ClientAsyncResponseReaderInterface< google::bigtable::v2::CheckAndMutateRowResponse > >

ReadModifyWriteRow(grpc::ClientContext *, google::bigtable::v2::ReadModifyWriteRowRequest const &, google::bigtable::v2::ReadModifyWriteRowResponse *)

the google.bigtable.v2.Bigtable wrappers.

Parameters
NameDescription
context grpc::ClientContext *
request google::bigtable::v2::ReadModifyWriteRowRequest const &
response google::bigtable::v2::ReadModifyWriteRowResponse *
Returns
TypeDescription
grpc::Status

AsyncReadModifyWriteRow(grpc::ClientContext *, google::bigtable::v2::ReadModifyWriteRowRequest const &, grpc::CompletionQueue *)

the google.bigtable.v2.Bigtable wrappers.

Parameters
NameDescription
context grpc::ClientContext *
request google::bigtable::v2::ReadModifyWriteRowRequest const &
cq grpc::CompletionQueue *
Returns
TypeDescription
std::unique_ptr< grpc::ClientAsyncResponseReaderInterface< google::bigtable::v2::ReadModifyWriteRowResponse > >

ReadRows(grpc::ClientContext *, google::bigtable::v2::ReadRowsRequest const &)

the google.bigtable.v2.Bigtable wrappers.

Parameters
NameDescription
context grpc::ClientContext *
request google::bigtable::v2::ReadRowsRequest const &