Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
Contains all the Cloud Bigtable C++ client APIs. More...
Classes | |
class | AdminClient |
Creates a bigtable_admin::BigtableTableAdminConnection and a CompletionQueue for bigtable::TableAdmin to use. More... | |
struct | AdminEndpointOption |
The endpoint for table admin operations. More... | |
class | AlwaysRetryMutationPolicy |
Implements a policy that retries all mutations. More... | |
class | AppProfileConfig |
Specify the initial configuration for an application profile. More... | |
struct | AppProfileIdOption |
The application profile id. More... | |
class | AppProfileUpdateConfig |
Build a proto to update an Application Profile configuration. More... | |
class | AsyncRowReader |
class | BulkMutation |
Represent a set of mutations across multiple rows. More... | |
class | Cell |
The in-memory representation of a Bigtable cell. More... | |
class | ClientOptions |
Configuration options for the Bigtable Client. More... | |
class | ClusterConfig |
Specify the initial configuration for a new cluster. More... | |
struct | ClusterList |
The response for an asynchronous request listing all the clusters. More... | |
class | ColumnFamilyModification |
Define the interfaces to create column family modifications. More... | |
struct | DataBackoffPolicyOption |
Option to configure the backoff policy used by Table . More... | |
class | DataClient |
Connects to Cloud Bigtable's data manipulation APIs. More... | |
class | DataConnection |
A connection to the Cloud Bigtable Data API. More... | |
struct | DataEndpointOption |
The endpoint for data operations. More... | |
struct | DataRetryPolicyOption |
Option to configure the retry policy used by Table . More... | |
class | ExponentialBackoffPolicy |
Implement a simple exponential backoff policy. More... | |
class | FailedMutation |
A SingleRowMutation that failed. More... | |
class | Filter |
Define the interfaces to create filter expressions. More... | |
class | GcRule |
Implement a thin wrapper around google::bigtable::admin::v2::GcRule. More... | |
class | GenericPollingPolicy |
Construct a polling policy from existing Retry and Backoff policies. More... | |
class | IdempotentMutationPolicy |
Defines the interface to control which mutations are idempotent and therefore can be re-tried. More... | |
struct | IdempotentMutationPolicyOption |
Option to configure the idempotency policy used by Table . More... | |
class | InstanceAdmin |
Implements the APIs to administer Cloud Bigtable instances. More... | |
class | InstanceAdminClient |
Creates a bigtable_admin::BigtableInstanceAdminConnection for bigtable::InstanceAdmin to use. More... | |
struct | InstanceAdminEndpointOption |
The endpoint for instance admin operations. More... | |
class | InstanceConfig |
Specify the initial configuration for a new instance. More... | |
struct | InstanceList |
The response for an asynchronous request listing all the instances. More... | |
class | InstanceResource |
This class identifies a Cloud Bigtable Instance. More... | |
class | InstanceUpdateConfig |
Specify the initial configuration for updating an instance. More... | |
class | LimitedErrorCountRetryPolicy |
Implement a simple "count errors and then stop" retry policy. More... | |
class | LimitedTimeRetryPolicy |
Implement a simple "keep trying for this time" retry policy. More... | |
struct | MaxConnectionRefreshOption |
Maximum time in ms to refresh connections. More... | |
class | MetadataParamTypes |
Define the class for governing x-goog-request-params metadata value. More... | |
class | MetadataUpdatePolicy |
MetadataUpdatePolicy holds supported metadata and setup ClientContext. More... | |
struct | MinConnectionRefreshOption |
Minimum time in ms to refresh connections. More... | |
struct | Mutation |
Represent a single change to a specific row in a Table. More... | |
class | MutationBatcher |
Objects of this class pack single row mutations into bulk mutations. More... | |
class | PermanentMutationFailure |
Report unrecoverable errors in a partially completed mutation. More... | |
class | PollingPolicy |
Define the interface for providing asynchronous repetitive call rules. More... | |
class | ReadModifyWriteRule |
Define the interfaces to create ReadWriteModifyRule operations. More... | |
struct | ReadRowsParams |
Wrap the arguments to ReadRows() . More... | |
class | Row |
The in-memory representation of a Bigtable row. More... | |
struct | RowKeySample |
A simple wrapper to represent the response from Table::SampleRowKeys() . More... | |
class | RowRange |
Define the interfaces to create row key ranges. More... | |
class | RowReader |
Object returned by Table::ReadRows(), enumerates rows in the response. More... | |
class | RowSet |
Represent a (possibly non-continuous) set of row keys. More... | |
class | RPCBackoffPolicy |
Define the interface for controlling how the Bigtable client backsoff from failed RPC operations. More... | |
class | RPCRetryPolicy |
Define the interface for controlling how the Bigtable client retries RPC operations. More... | |
class | SafeIdempotentMutationPolicy |
Implements a policy that only accepts truly idempotent mutations. More... | |
class | SingleRowMutation |
Represent a single row mutation. More... | |
class | Table |
The main interface to interact with data in a Cloud Bigtable table. More... | |
class | TableAdmin |
Implements the API to administer tables in a Cloud Bigtable instance. More... | |
class | TableConfig |
Specify the initial schema for a new table. More... | |
class | TableResource |
This class identifies a Cloud Bigtable Table. More... | |
Typedefs | |
using | ColumnQualifierType = std::decay< decltype(std::declval< google::bigtable::v2::Column >().qualifier())>::type |
Defines the type for column qualifiers. More... | |
using | CellValueType = std::decay< decltype(std::declval< google::bigtable::v2::Cell >().value())>::type |
Defines the type for cell values. More... | |
using | Instance = ::google::bigtable::admin::v2::Instance |
using | ClientOptionList = OptionList< DataEndpointOption, AdminEndpointOption, InstanceAdminEndpointOption, MinConnectionRefreshOption, MaxConnectionRefreshOption > |
The complete list of options accepted by bigtable::*Client More... | |
using | DataRetryPolicy = ::google::cloud::internal::TraitBasedRetryPolicy< bigtable::internal::SafeGrpcRetry > |
using | DataLimitedTimeRetryPolicy = ::google::cloud::internal::LimitedTimeRetryPolicy< bigtable::internal::SafeGrpcRetry > |
using | DataLimitedErrorCountRetryPolicy = ::google::cloud::internal::LimitedErrorCountRetryPolicy< bigtable::internal::SafeGrpcRetry > |
using | DataPolicyOptionList = OptionList< DataRetryPolicyOption, DataBackoffPolicyOption, IdempotentMutationPolicyOption > |
using | RowKeyType = std::decay< decltype(std::declval< google::bigtable::v2::Row >().key())>::type |
Defines the type for row keys. More... | |
Enumerations | |
enum class | MutationBranch { kPredicateNotMatched , kPredicateMatched } |
The branch taken by a Table::CheckAndMutateRow operation. More... | |
enum class | Consistency { kInconsistent , kConsistent } |
The result of checking replication against a given token. More... | |
Functions | |||||||||||
std::shared_ptr< AdminClient > | MakeAdminClient (std::string project, Options options={}) | ||||||||||
Create a new table admin client configured via options . More... | |||||||||||
std::shared_ptr< AdminClient > | CreateDefaultAdminClient (std::string project, ClientOptions options) | ||||||||||
Create a new table admin client configured via options . More... | |||||||||||
Mutation | SetCell (Cell cell) | ||||||||||
Create a mutation to set a cell value based on a bigtable::Cell . More... | |||||||||||
std::shared_ptr< DataClient > | MakeDataClient (std::string project_id, std::string instance_id, Options options={}) | ||||||||||
Create a new data client configured via options . More... | |||||||||||
std::shared_ptr< DataClient > | CreateDefaultDataClient (std::string project_id, std::string instance_id, ClientOptions options) | ||||||||||
Create a new data client configured via options . More... | |||||||||||
std::string | InstanceName (std::shared_ptr< DataClient > const &client) | ||||||||||
Return the fully qualified instance name for the client . More... | |||||||||||
std::shared_ptr< DataConnection > | MakeDataConnection (Options options={}) | ||||||||||
Returns a DataConnection object that can be used for interacting with the Cloud Bigtable Data API. More... | |||||||||||
google::type::Expr | Expression (std::string expression, std::string title="", std::string description="", std::string location="") | ||||||||||
Create a google::type::Expr. More... | |||||||||||
std::ostream & | operator<< (std::ostream &stream, google::type::Expr const &) | ||||||||||
template<class InputIt > | |||||||||||
google::iam::v1::Binding | IamBinding (std::string role, InputIt begin, InputIt end) | ||||||||||
Create a google::iam::v1::Binding. More... | |||||||||||
template<class InputIt > | |||||||||||
google::iam::v1::Binding | IamBinding (std::string role, InputIt begin, InputIt end, google::type::Expr condition) | ||||||||||
Create a google::iam::v1::Binding. More... | |||||||||||
google::iam::v1::Binding | IamBinding (std::string role, std::initializer_list< std::string > members) | ||||||||||
Create a google::iam::v1::Binding. More... | |||||||||||
google::iam::v1::Binding | IamBinding (std::string role, std::initializer_list< std::string > members, google::type::Expr condition) | ||||||||||
Create a google::iam::v1::Binding. More... | |||||||||||
google::iam::v1::Binding | IamBinding (std::string role, std::vector< std::string > members) | ||||||||||
Create a google::iam::v1::Binding. More... | |||||||||||
google::iam::v1::Binding | IamBinding (std::string role, std::vector< std::string > members, google::type::Expr condition) | ||||||||||
Create a google::iam::v1::Binding. More... | |||||||||||
std::ostream & | operator<< (std::ostream &os, google::iam::v1::Binding const &binding) | ||||||||||
template<class InputIt > | |||||||||||
google::iam::v1::Binding | IamBindingAppendMembers (google::iam::v1::Binding binding, InputIt begin, InputIt end) | ||||||||||
Append members to a google::iam::v1::Binding. More... | |||||||||||
google::iam::v1::Binding | IamBindingSetCondition (google::iam::v1::Binding binding, google::type::Expr condition) | ||||||||||
Set a condition to an google::iam::v1::Binding. More... | |||||||||||
template<class InputIt > | |||||||||||
google::iam::v1::Policy | IamPolicy (InputIt first_binding, InputIt last_binding, std::string etag="", std::int32_t version=0) | ||||||||||
Create a google::iam::v1::Policy. More... | |||||||||||
google::iam::v1::Policy | IamPolicy (std::initializer_list< google::iam::v1::Binding > bindings, std::string etag="", std::int32_t version=0) | ||||||||||
Create a google::iam::v1::Policy. More... | |||||||||||
google::iam::v1::Policy | IamPolicy (std::vector< google::iam::v1::Binding > bindings, std::string etag="", std::int32_t version=0) | ||||||||||
Create a google::iam::v1::Policy. More... | |||||||||||
std::ostream & | operator<< (std::ostream &os, google::iam::v1::Policy const &rhs) | ||||||||||
template<typename Functor > | |||||||||||
size_t | RemoveBindingsFromPolicyIf (google::iam::v1::Policy &policy, Functor pred) | ||||||||||
Remove all bindings matching a predicate from a policy. More... | |||||||||||
void | RemoveBindingFromPolicy (google::iam::v1::Policy &policy, google::protobuf::RepeatedPtrField< google::iam::v1::Binding >::iterator to_remove) | ||||||||||
Remove a specific binding from a policy. More... | |||||||||||
std::unique_ptr< IdempotentMutationPolicy > | DefaultIdempotentMutationPolicy () | ||||||||||
Return an instance of the default IdempotentMutationPolicy. More... | |||||||||||
std::shared_ptr< InstanceAdminClient > | MakeInstanceAdminClient (std::string project, Options options={}) | ||||||||||
Create a new instance admin client configured via options . More... | |||||||||||
std::shared_ptr< InstanceAdminClient > | CreateDefaultInstanceAdminClient (std::string project, ClientOptions options) | ||||||||||
Create a new instance admin client configured via options . More... | |||||||||||
StatusOr< InstanceResource > | MakeInstanceResource (std::string const &full_name) | ||||||||||
Constructs an InstanceResource from the given full_name . More... | |||||||||||
bool | operator== (MetadataParamTypes const &lhs, MetadataParamTypes const &rhs) | ||||||||||
bool | operator!= (MetadataParamTypes const &lhs, MetadataParamTypes const &rhs) | ||||||||||
constexpr std::int64_t | ServerSetTimestamp () | ||||||||||
A magic value where the server sets the timestamp. More... | |||||||||||
template<typename ColumnType , typename ValueType > | |||||||||||
Mutation | SetCell (std::string family, ColumnType &&column, std::chrono::milliseconds timestamp, ValueType &&value) | ||||||||||
Create a mutation to set a cell value. More... | |||||||||||
template<typename ColumnType > | |||||||||||
Mutation | SetCell (std::string family, ColumnType &&column, std::chrono::milliseconds timestamp, std::int64_t value) | ||||||||||
Create a mutation to store a 64-bit big endian integer value. More... | |||||||||||
template<typename ColumnType , typename ValueType > | |||||||||||
Mutation | SetCell (std::string family, ColumnType &&column, ValueType &&value) | ||||||||||
Create a mutation to set a cell value where the server sets the time. More... | |||||||||||
template<typename ColumnType > | |||||||||||
Mutation | SetCell (std::string family, ColumnType &&column, std::int64_t value) | ||||||||||
Create a mutation to store a 64-bit big endian integer value. More... | |||||||||||
Mutation | DeleteFromFamily (std::string family) | ||||||||||
Create a mutation to delete all the cells in a column family. More... | |||||||||||
Mutation | DeleteFromRow () | ||||||||||
Create a mutation to delete all the cells in a row. More... | |||||||||||
std::unique_ptr< PollingPolicy > | DefaultPollingPolicy (internal::RPCPolicyParameters defaults) | ||||||||||
std::string | InstanceName (std::string const &project_id, std::string const &instance_id) | ||||||||||
std::string | TableName (std::string const &project_id, std::string const &instance_id, std::string const &table_id) | ||||||||||
std::string | ClusterName (std::string const &project_id, std::string const &instance_id, std::string const &cluster_id) | ||||||||||
std::string | AppProfileName (std::string const &project_id, std::string const &instance_id, std::string const &app_profile_id) | ||||||||||
std::string | BackupName (std::string const &project_id, std::string const &instance_id, std::string const &cluster_id, std::string const &backup_id) | ||||||||||
bool | operator== (RowRange const &lhs, RowRange const &rhs) | ||||||||||
bool | operator!= (RowRange const &lhs, RowRange const &rhs) | ||||||||||
std::ostream & | operator<< (std::ostream &os, RowRange const &x) | ||||||||||
Print a human-readable representation of the range, mostly for testing. More... | |||||||||||
std::unique_ptr< RPCBackoffPolicy > | DefaultRPCBackoffPolicy (internal::RPCPolicyParameters defaults) | ||||||||||
Return an instance of the default RPCBackoffPolicy. More... | |||||||||||
std::unique_ptr< RPCRetryPolicy > | DefaultRPCRetryPolicy (internal::RPCPolicyParameters defaults) | ||||||||||
Return an instance of the default RPCRetryPolicy. More... | |||||||||||
std::string | TableName (std::shared_ptr< DataClient > const &client, std::string const &table_id) | ||||||||||
Return the full table name. More... | |||||||||||
StatusOr< TableResource > | MakeTableResource (std::string const &full_name) | ||||||||||
Constructs a TableResource from the given full_name . More... | |||||||||||
int constexpr | version_major () | ||||||||||
The Cloud Bigtable C++ Client major version. More... | |||||||||||
int constexpr | version_minor () | ||||||||||
The Cloud Bigtable C++ Client minor version. More... | |||||||||||
int constexpr | version_patch () | ||||||||||
The Cloud Bigtable C++ Client patch version. More... | |||||||||||
constexpr char const * | version_pre_release () | ||||||||||
The Cloud Bigtable C++ Client pre-release version. More... | |||||||||||
int constexpr | version () | ||||||||||
A single integer representing the Major/Minor/Patch version. More... | |||||||||||
std::string | version_string () | ||||||||||
The version as a string, in MAJOR.MINOR.PATCH[-PRE][+gitrev] format. More... | |||||||||||
Create mutations to delete a range of cells from a column. | |||||||||||
The following functions create a mutation that deletes all the cells in the given column family and, column within the given timestamp in the range. The function accepts any instantiation of using namespace std::chrono_literals; // C++14
Mutation DeleteFromColumn(std::string family, ColumnType &&column, std::chrono::duration< Rep1, Period1 > timestamp_begin, std::chrono::duration< Rep2, Period2 > timestamp_end) Definition: mutations.h:169 The ending timestamp is exclusive, while the beginning timestamp is inclusive. That is, the interval is [
| |||||||||||
template<typename Rep1 , typename Period1 , typename Rep2 , typename Period2 , typename ColumnType > | |||||||||||
Mutation | DeleteFromColumn (std::string family, ColumnType &&column, std::chrono::duration< Rep1, Period1 > timestamp_begin, std::chrono::duration< Rep2, Period2 > timestamp_end) | ||||||||||
The following functions create a mutation that deletes all the | |||||||||||
cells in the given column family and column, Delete up to timestamp_end, but excluding, timestamp_end. The function accepts any instantiation of using namespace std::chrono_literals; // C++14
| |||||||||||
template<typename Rep1 , typename Period1 , typename ColumnType > | |||||||||||
Mutation | DeleteFromColumnStartingFrom (std::string family, ColumnType &&column, std::chrono::duration< Rep1, Period1 > timestamp_begin) | ||||||||||
Delete all the values for the column. More... | |||||||||||
template<typename Rep2 , typename Period2 , typename ColumnType > | |||||||||||
Mutation | DeleteFromColumnEndingAt (std::string family, ColumnType &&column, std::chrono::duration< Rep2, Period2 > timestamp_end) | ||||||||||
Delete all the values for the column. More... | |||||||||||
template<typename ColumnType > | |||||||||||
Mutation | DeleteFromColumn (std::string family, ColumnType &&column) | ||||||||||
Delete all the values for the column. More... | |||||||||||
Contains all the Cloud Bigtable C++ client APIs.
using google::cloud::bigtable::CellValueType = typedef std::decay< decltype(std::declval<google::bigtable::v2::Cell>().value())>::type |
Defines the type for cell values.
Inside Google some protobuf fields of type bytes
are mapped to a different type than std::string
. This is the case for column qualifiers. We use this type to automatically detect what is the representation for this field and use the correct mapping.
External users of the Cloud Bigtable C++ client library should treat this as a complicated typedef
for std::string
. We have no plans to change the type in the external version of the C++ client library for the foreseeable future. In the eventuality that we do decide to change the type, this would be a reason update the library major version number, and we would give users time to migrate.
In other words, external users of the Cloud Bigtable C++ client should simply write std::string
where this type appears. For Google projects that must compile both inside and outside Google, this alias may be convenient.
using google::cloud::bigtable::ClientOptionList = typedef OptionList<DataEndpointOption, AdminEndpointOption, InstanceAdminEndpointOption, MinConnectionRefreshOption, MaxConnectionRefreshOption> |
The complete list of options accepted by bigtable::*Client
using google::cloud::bigtable::ColumnQualifierType = typedef std::decay< decltype(std::declval<google::bigtable::v2::Column>().qualifier())>::type |
Defines the type for column qualifiers.
Inside Google some protobuf fields of type bytes
are mapped to a different type than std::string
. This is the case for column qualifiers. We use this type to automatically detect what is the representation for this field and use the correct mapping.
External users of the Cloud Bigtable C++ client library should treat this as a complicated typedef
for std::string
. We have no plans to change the type in the external version of the C++ client library for the foreseeable future. In the eventuality that we do decide to change the type, this would be a reason update the library major version number, and we would give users time to migrate.
In other words, external users of the Cloud Bigtable C++ client should simply write std::string
where this type appears. For Google projects that must compile both inside and outside Google, this alias may be convenient.
using google::cloud::bigtable::DataLimitedErrorCountRetryPolicy = typedef ::google::cloud::internal::LimitedErrorCountRetryPolicy< bigtable::internal::SafeGrpcRetry> |
using google::cloud::bigtable::DataLimitedTimeRetryPolicy = typedef ::google::cloud::internal::LimitedTimeRetryPolicy< bigtable::internal::SafeGrpcRetry> |
using google::cloud::bigtable::DataPolicyOptionList = typedef OptionList<DataRetryPolicyOption, DataBackoffPolicyOption, IdempotentMutationPolicyOption> |
using google::cloud::bigtable::DataRetryPolicy = typedef ::google::cloud::internal::TraitBasedRetryPolicy< bigtable::internal::SafeGrpcRetry> |
using google::cloud::bigtable::Instance = typedef ::google::bigtable::admin::v2::Instance |
using google::cloud::bigtable::RowKeyType = typedef std::decay<decltype(std::declval<google::bigtable::v2::Row>().key())>::type |
Defines the type for row keys.
Inside Google some protobuf fields of type bytes
are mapped to a different type than std::string
. This is the case for row keys. We use this type to automatically detect what is the representation for this field and use the correct mapping.
External users of the Cloud Bigtable C++ client library should treat this as a complicated typedef
for std::string
. We have no plans to change the type in the external version of the C++ client library for the foreseeable future. In the eventuality that we do decide to change the type, this would be a reason update the library major version number, and we would give users time to migrate.
In other words, external users of the Cloud Bigtable C++ client should simply write std::string
where this type appears. For Google projects that must compile both inside and outside Google, this alias may be convenient.
|
strong |
|
strong |
The branch taken by a Table::CheckAndMutateRow operation.
std::string google::cloud::bigtable::AppProfileName | ( | std::string const & | project_id, |
std::string const & | instance_id, | ||
std::string const & | app_profile_id | ||
) |
std::string google::cloud::bigtable::BackupName | ( | std::string const & | project_id, |
std::string const & | instance_id, | ||
std::string const & | cluster_id, | ||
std::string const & | backup_id | ||
) |
std::string google::cloud::bigtable::ClusterName | ( | std::string const & | project_id, |
std::string const & | instance_id, | ||
std::string const & | cluster_id | ||
) |
std::shared_ptr< AdminClient > google::cloud::bigtable::CreateDefaultAdminClient | ( | std::string | project, |
ClientOptions | options | ||
) |
Create a new table admin client configured via options
.
MakeAdminClient
method which accepts google::cloud::Options
instead. std::shared_ptr< DataClient > google::cloud::bigtable::CreateDefaultDataClient | ( | std::string | project_id, |
std::string | instance_id, | ||
ClientOptions | options | ||
) |
Create a new data client configured via options
.
MakeDataClient
method which accepts google::cloud::Options
instead. std::shared_ptr< InstanceAdminClient > google::cloud::bigtable::CreateDefaultInstanceAdminClient | ( | std::string | project, |
ClientOptions | options | ||
) |
Create a new instance admin client configured via options
.
MakeInstanceAdminClient
method which accepts google::cloud::Options
instead. std::unique_ptr< IdempotentMutationPolicy > google::cloud::bigtable::DefaultIdempotentMutationPolicy | ( | ) |
Return an instance of the default IdempotentMutationPolicy.
std::unique_ptr< PollingPolicy > google::cloud::bigtable::DefaultPollingPolicy | ( | internal::RPCPolicyParameters | defaults | ) |
std::unique_ptr< RPCBackoffPolicy > google::cloud::bigtable::DefaultRPCBackoffPolicy | ( | internal::RPCPolicyParameters | defaults | ) |
Return an instance of the default RPCBackoffPolicy.
std::unique_ptr< RPCRetryPolicy > google::cloud::bigtable::DefaultRPCRetryPolicy | ( | internal::RPCPolicyParameters | defaults | ) |
Return an instance of the default RPCRetryPolicy.
Mutation google::cloud::bigtable::DeleteFromColumn | ( | std::string | family, |
ColumnType && | column | ||
) |
Delete all the values for the column.
Mutation google::cloud::bigtable::DeleteFromColumn | ( | std::string | family, |
ColumnType && | column, | ||
std::chrono::duration< Rep1, Period1 > | timestamp_begin, | ||
std::chrono::duration< Rep2, Period2 > | timestamp_end | ||
) |
Mutation google::cloud::bigtable::DeleteFromColumnEndingAt | ( | std::string | family, |
ColumnType && | column, | ||
std::chrono::duration< Rep2, Period2 > | timestamp_end | ||
) |
Delete all the values for the column.
Mutation google::cloud::bigtable::DeleteFromColumnStartingFrom | ( | std::string | family, |
ColumnType && | column, | ||
std::chrono::duration< Rep1, Period1 > | timestamp_begin | ||
) |
Delete all the values for the column.
Mutation google::cloud::bigtable::DeleteFromFamily | ( | std::string | family | ) |
Create a mutation to delete all the cells in a column family.
Mutation google::cloud::bigtable::DeleteFromRow | ( | ) |
Create a mutation to delete all the cells in a row.
google::type::Expr google::cloud::bigtable::Expression | ( | std::string | expression, |
std::string | title = "" , |
||
std::string | description = "" , |
||
std::string | location = "" |
||
) |
Create a google::type::Expr.
This is a textual representation of an expression in Common Expression Language (CEL) syntax.
expression | the expression in Common Expression Language. |
title | an optional title for the expression, i.e. a short string describing its purpose. |
description | an optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
location | an optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
google::iam::v1::Binding google::cloud::bigtable::IamBinding | ( | std::string | role, |
InputIt | begin, | ||
InputIt | end | ||
) |
Create a google::iam::v1::Binding.
role | the role which is assigned to members |
begin | iterator pointing to the first member |
end | iterator pointing to past last member |
google::iam::v1::Binding google::cloud::bigtable::IamBinding | ( | std::string | role, |
InputIt | begin, | ||
InputIt | end, | ||
google::type::Expr | condition | ||
) |
Create a google::iam::v1::Binding.
role | the role which is assigned to members |
begin | iterator pointing to the first member |
end | iterator pointing to past last member |
condition | expression indicating when the binding is effective |
google::iam::v1::Binding google::cloud::bigtable::IamBinding | ( | std::string | role, |
std::initializer_list< std::string > | members | ||
) |
Create a google::iam::v1::Binding.
role | the role which is assigned to members |
members | initializer_list of members |
google::iam::v1::Binding google::cloud::bigtable::IamBinding | ( | std::string | role, |
std::initializer_list< std::string > | members, | ||
google::type::Expr | condition | ||
) |
Create a google::iam::v1::Binding.
role | the role which is assigned to members |
members | initializer_list of members |
condition | expression indicating when the binding is effective |
google::iam::v1::Binding google::cloud::bigtable::IamBinding | ( | std::string | role, |
std::vector< std::string > | members | ||
) |
Create a google::iam::v1::Binding.
role | the role which is assigned to members |
members | vector of members |
google::iam::v1::Binding google::cloud::bigtable::IamBinding | ( | std::string | role, |
std::vector< std::string > | members, | ||
google::type::Expr | condition | ||
) |
Create a google::iam::v1::Binding.
role | the role which is assigned to members |
members | vector of members |
condition | expression indicating when the binding is effective |
google::iam::v1::Binding google::cloud::bigtable::IamBindingAppendMembers | ( | google::iam::v1::Binding | binding, |
InputIt | begin, | ||
InputIt | end | ||
) |
Append members to a google::iam::v1::Binding.
binding | the role which is assigned to members |
begin | iterator pointing to the first member |
end | iterator pointing to past last member |
google::iam::v1::Binding google::cloud::bigtable::IamBindingSetCondition | ( | google::iam::v1::Binding | binding, |
google::type::Expr | condition | ||
) |
Set a condition to an google::iam::v1::Binding.
binding | the binding to which the condition is added |
condition | the added condition |
google::iam::v1::Policy google::cloud::bigtable::IamPolicy | ( | InputIt | first_binding, |
InputIt | last_binding, | ||
std::string | etag = "" , |
||
std::int32_t | version = 0 |
||
) |
Create a google::iam::v1::Policy.
first_binding | iterator pointing to the first google::iam::v1::Binding |
last_binding | iterator pointing to past last google::iam::v1::Binding |
etag | used for optimistic concurrency control |
version | currently unused |
google::iam::v1::Policy google::cloud::bigtable::IamPolicy | ( | std::initializer_list< google::iam::v1::Binding > | bindings, |
std::string | etag = "" , |
||
std::int32_t | version = 0 |
||
) |
Create a google::iam::v1::Policy.
bindings | initializer_list of google::iam::v1::Binding |
etag | used for optimistic concurrency control |
version | currently unused |
google::iam::v1::Policy google::cloud::bigtable::IamPolicy | ( | std::vector< google::iam::v1::Binding > | bindings, |
std::string | etag = "" , |
||
std::int32_t | version = 0 |
||
) |
Create a google::iam::v1::Policy.
bindings | vector of google::iam::v1::Binding |
etag | used for optimistic concurrency control |
version | currently unused |
|
inline |
Return the fully qualified instance name for the client
.
Compute the full path of the instance associated with the client, i.e., projects/instances/<client->project_id()>/instances/<client->instance_id()>
std::string google::cloud::bigtable::InstanceName | ( | std::string const & | project_id, |
std::string const & | instance_id | ||
) |
std::shared_ptr< AdminClient > google::cloud::bigtable::MakeAdminClient | ( | std::string | project, |
Options | options = {} |
||
) |
Create a new table admin client configured via options
.
std::shared_ptr< DataClient > google::cloud::bigtable::MakeDataClient | ( | std::string | project_id, |
std::string | instance_id, | ||
Options | options = {} |
||
) |
Create a new data client configured via options
.
std::shared_ptr< DataConnection > google::cloud::bigtable::MakeDataConnection | ( | Options | options = {} | ) |
Returns a DataConnection
object that can be used for interacting with the Cloud Bigtable Data API.
The returned connection object should not be used directly; instead it should be given to a Table
instance, and methods should be invoked on Table
.
The optional opts
argument may be used to configure aspects of the returned DataConnection
. Expected options are any of the following options or types in the option lists.
google::cloud::CommonOptionList
google::cloud::GrpcOptionList
google::cloud::UnifiedCredentialsOptionList
google::cloud::bigtable::AppProfileIdOption
google::cloud::bigtable::ClientOptionsList
google::cloud::bigtable::DataPolicyOptionList
GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes
in the environment and unexpected options will be logged.options | (optional) Configure the DataConnection created by this function. |
std::shared_ptr< InstanceAdminClient > google::cloud::bigtable::MakeInstanceAdminClient | ( | std::string | project, |
Options | options = {} |
||
) |
Create a new instance admin client configured via options
.
StatusOr< InstanceResource > google::cloud::bigtable::MakeInstanceResource | ( | std::string const & | full_name | ) |
Constructs an InstanceResource
from the given full_name
.
Returns a non-OK Status if full_name
is improperly formed.
StatusOr< TableResource > google::cloud::bigtable::MakeTableResource | ( | std::string const & | full_name | ) |
Constructs a TableResource
from the given full_name
.
Returns a non-OK Status if full_name
is improperly formed.
|
inline |
std::ostream & google::cloud::bigtable::operator<< | ( | std::ostream & | os, |
google::iam::v1::Binding const & | binding | ||
) |
std::ostream & google::cloud::bigtable::operator<< | ( | std::ostream & | os, |
google::iam::v1::Policy const & | rhs | ||
) |
std::ostream & google::cloud::bigtable::operator<< | ( | std::ostream & | os, |
RowRange const & | x | ||
) |
Print a human-readable representation of the range, mostly for testing.
std::ostream & google::cloud::bigtable::operator<< | ( | std::ostream & | stream, |
google::type::Expr const & | |||
) |
|
inline |
void google::cloud::bigtable::RemoveBindingFromPolicy | ( | google::iam::v1::Policy & | policy, |
google::protobuf::RepeatedPtrField< google::iam::v1::Binding >::iterator | to_remove | ||
) |
Remove a specific binding from a policy.
policy | the policy to remove from |
to_remove | the iterator indicating the binding; it should be retrieved from the mutable_bindings() member |
size_t google::cloud::bigtable::RemoveBindingsFromPolicyIf | ( | google::iam::v1::Policy & | policy, |
Functor | pred | ||
) |
Remove all bindings matching a predicate from a policy.
policy | the policy to remove from |
pred | predicate indicating whether to remove a binding |
Functor | the type of the predicate; it should be invocable with google::iam::v1::Binding const& and return a bool. |
|
constexpr |
A magic value where the server sets the timestamp.
Notice that using this value in a SetCell() mutation makes it non-idempotent, and by default the client will not retry such mutations.
Create a mutation to set a cell value based on a bigtable::Cell
.
These mutations are not idempotent and not retried by default.
Mutation google::cloud::bigtable::SetCell | ( | std::string | family, |
ColumnType && | column, | ||
std::chrono::milliseconds | timestamp, | ||
std::int64_t | value | ||
) |
Create a mutation to store a 64-bit big endian integer value.
Mutation google::cloud::bigtable::SetCell | ( | std::string | family, |
ColumnType && | column, | ||
std::chrono::milliseconds | timestamp, | ||
ValueType && | value | ||
) |
Create a mutation to set a cell value.
Mutation google::cloud::bigtable::SetCell | ( | std::string | family, |
ColumnType && | column, | ||
std::int64_t | value | ||
) |
Create a mutation to store a 64-bit big endian integer value.
Mutation google::cloud::bigtable::SetCell | ( | std::string | family, |
ColumnType && | column, | ||
ValueType && | value | ||
) |
Create a mutation to set a cell value where the server sets the time.
These mutations are not idempotent and not retried by default.
|
inline |
Return the full table name.
The full table name is:
projects/<PROJECT_ID>/instances/<INSTANCE_ID>/tables/<table_id>
Where the project id and instance id come from the client
parameter.
std::string google::cloud::bigtable::TableName | ( | std::string const & | project_id, |
std::string const & | instance_id, | ||
std::string const & | table_id | ||
) |
|
constexpr |
A single integer representing the Major/Minor/Patch version.
|
constexpr |
The Cloud Bigtable C++ Client major version.
|
constexpr |
The Cloud Bigtable C++ Client minor version.
|
constexpr |
The Cloud Bigtable C++ Client patch version.
|
constexpr |
The Cloud Bigtable C++ Client pre-release version.
std::string google::cloud::bigtable::version_string | ( | ) |
The version as a string, in MAJOR.MINOR.PATCH[-PRE][+gitrev] format.