• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

benchmarks/H03-May-2022-3,0882,104

ci/H01-Dec-2020-13673

doc/H01-Dec-2020-685460

examples/H03-May-2022-8,6506,661

internal/H01-Dec-2020-6,8434,967

quickstart/H03-May-2022-329222

testing/H01-Dec-2020-2,7242,001

tests/H03-May-2022-4,9133,731

tools/H01-Dec-2020-444308

BUILDH A D01-Dec-20203.2 KiB9181

README.mdH A D01-Dec-20203.3 KiB9570

admin_client.ccH A D01-Dec-202017.2 KiB463375

admin_client.hH A D01-Dec-202012.6 KiB301215

admin_client_test.ccH A D01-Dec-20201.4 KiB4726

app_profile_config.ccH A D01-Dec-20202.1 KiB6444

app_profile_config.hH A D01-Dec-20204 KiB12792

app_profile_config_test.ccH A D01-Dec-20205.4 KiB135107

async_list_app_profiles_test.ccH A D01-Dec-202011.9 KiB291234

async_list_clusters_test.ccH A D01-Dec-202013.2 KiB319262

async_list_instances_test.ccH A D01-Dec-202013.1 KiB315259

async_read_stream_test.ccH A D01-Dec-202024.5 KiB724588

async_row_reader.hH A D01-Dec-202016.2 KiB436292

async_row_reader_test.ccH A D01-Dec-202035.7 KiB1,086866

bigtable_client.bzlH A D01-Dec-20203.1 KiB111107

bigtable_client_testing.bzlH A D01-Dec-20201.5 KiB4238

bigtable_client_unit_tests.bzlH A D01-Dec-20202.4 KiB7370

bigtable_version_test.ccH A D01-Dec-20202 KiB5734

cell.hH A D01-Dec-20207.7 KiB18877

cell_test.ccH A D01-Dec-20203.5 KiB10273

client_options.ccH A D01-Dec-20205.4 KiB145110

client_options.hH A D01-Dec-202012.3 KiB358132

client_options_test.ccH A D01-Dec-202018.1 KiB433312

cluster_config.ccH A D01-Dec-20201.2 KiB3412

cluster_config.hH A D01-Dec-20202.3 KiB6938

cluster_config_test.ccH A D01-Dec-20201.7 KiB5030

cluster_list_responses.hH A D01-Dec-20201.7 KiB4917

column_family.hH A D01-Dec-20207.9 KiB229115

column_family_test.ccH A D01-Dec-20204.9 KiB154120

completion_queue.hH A D01-Dec-20201.1 KiB3314

config.cmake.inH A D01-Dec-20201.2 KiB3530

data_client.ccH A D01-Dec-202014.8 KiB384305

data_client.hH A D01-Dec-20208.5 KiB199127

data_client_test.ccH A D01-Dec-20201.5 KiB4928

expr.ccH A D01-Dec-20201.6 KiB5032

expr.hH A D01-Dec-20201.9 KiB5217

expr_test.ccH A D01-Dec-20202 KiB7253

filters.hH A D01-Dec-202028 KiB703251

filters_test.ccH A D01-Dec-202016.9 KiB422342

force_sanitizer_failures_test.ccH A D01-Dec-20202.9 KiB8548

iam_binding.ccH A D01-Dec-20202.6 KiB8058

iam_binding.hH A D01-Dec-20205.7 KiB17855

iam_binding_test.ccH A D01-Dec-20204 KiB10378

iam_policy.ccH A D01-Dec-20202.1 KiB6646

iam_policy.hH A D01-Dec-20204.6 KiB14749

iam_policy_test.ccH A D01-Dec-20203.1 KiB9167

idempotent_mutation_policy.ccH A D01-Dec-20202 KiB6642

idempotent_mutation_policy.hH A D01-Dec-20203.3 KiB9139

idempotent_mutation_policy_test.ccH A D01-Dec-20202.2 KiB5934

instance_admin.ccH A D01-Dec-202042.6 KiB1,122955

instance_admin.hH A D01-Dec-202057.6 KiB1,404188

instance_admin_client.ccH A D01-Dec-202014.9 KiB385307

instance_admin_client.hH A D01-Dec-202013.6 KiB345232

instance_admin_client_test.ccH A D01-Dec-20201.4 KiB4726

instance_admin_test.ccH A D01-Dec-202062.5 KiB1,6631,346

instance_config.ccH A D01-Dec-20201.3 KiB3512

instance_config.hH A D01-Dec-20203.1 KiB9056

instance_config_test.ccH A D01-Dec-20203 KiB8358

instance_list_responses.hH A D01-Dec-20201.7 KiB4917

instance_update_config.ccH A D01-Dec-20201.7 KiB4416

instance_update_config.hH A D01-Dec-20204.7 KiB13788

instance_update_config_test.ccH A D01-Dec-20203.6 KiB11789

metadata_update_policy.ccH A D01-Dec-20202.3 KiB5528

metadata_update_policy.hH A D01-Dec-20203.9 KiB11052

metadata_update_policy_test.ccH A D01-Dec-20203.4 KiB8655

mutation_batcher.ccH A D01-Dec-202010.1 KiB266197

mutation_batcher.hH A D01-Dec-202011.4 KiB318113

mutation_batcher_test.ccH A D01-Dec-202027.3 KiB752572

mutations.ccH A D01-Dec-20201.4 KiB4930

mutations.hH A D01-Dec-202019.8 KiB560281

mutations_test.ccH A D01-Dec-202010.3 KiB278213

polling_policy.ccH A D01-Dec-20201,021 3013

polling_policy.hH A D01-Dec-20204.7 KiB15465

polling_policy_test.ccH A D01-Dec-20203.6 KiB10065

read_modify_write_rule.hH A D01-Dec-20203.3 KiB9148

read_modify_write_rule_test.ccH A D01-Dec-20201.6 KiB4929

row.hH A D01-Dec-20201.9 KiB6127

row_key.hH A D01-Dec-20202.2 KiB5618

row_key_sample.hH A D01-Dec-20201.8 KiB5119

row_range.ccH A D01-Dec-20207.7 KiB239183

row_range.hH A D01-Dec-20206.6 KiB210120

row_range_test.ccH A D01-Dec-202026.1 KiB743605

row_reader.ccH A D01-Dec-20208.7 KiB255194

row_reader.hH A D01-Dec-20205.8 KiB17677

row_reader_test.ccH A D01-Dec-202030.3 KiB804635

row_set.ccH A D01-Dec-20202.1 KiB6642

row_set.hH A D01-Dec-20203.2 KiB10444

row_set_test.ccH A D01-Dec-20203.7 KiB12391

row_test.ccH A D01-Dec-20202.1 KiB6641

rpc_backoff_policy.ccH A D01-Dec-20201.7 KiB5230

rpc_backoff_policy.hH A D01-Dec-20203.8 KiB11246

rpc_backoff_policy_test.ccH A D01-Dec-20202.9 KiB8150

rpc_retry_policy.ccH A D01-Dec-20202.3 KiB7145

rpc_retry_policy.hH A D01-Dec-20205.9 KiB17392

rpc_retry_policy_test.ccH A D01-Dec-20204.1 KiB11774

table.ccH A D01-Dec-202017.5 KiB454366

table.hH A D01-Dec-202038.9 KiB919202

table_admin.ccH A D01-Dec-202040.8 KiB1,075910

table_admin.hH A D01-Dec-202065.7 KiB1,594256

table_admin_test.ccH A D01-Dec-202064.8 KiB1,7031,283

table_apply_test.ccH A D01-Dec-20203.7 KiB9967

table_bulk_apply_test.ccH A D01-Dec-202011.2 KiB303234

table_check_and_mutate_row_test.ccH A D01-Dec-20202.8 KiB7750

table_config.ccH A D01-Dec-20202.7 KiB6933

table_config.hH A D01-Dec-20203.7 KiB10452

table_config_test.ccH A D01-Dec-20202.8 KiB9064

table_readmodifywriterow_test.ccH A D01-Dec-202010.8 KiB291243

table_readrow_test.ccH A D01-Dec-20204.6 KiB12697

table_readrows_test.ccH A D01-Dec-20205 KiB156118

table_sample_row_keys_test.ccH A D01-Dec-20206.8 KiB204161

table_test.ccH A D01-Dec-20207.7 KiB222180

version.ccH A D01-Dec-2020974 2812

version.hH A D01-Dec-20202.9 KiB8630

version_info.hH A D01-Dec-2020901 236

version_info.h.inH A D01-Dec-2020993 2319

README.md

1# Google Cloud Bigtable C++ Client Library
2
3<!-- This file is automatically generated by ci/generate-markdown/generate-bigtable-readme.sh -->
4
5This directory contains an idiomatic C++ client library for interacting with
6[Google Cloud Bigtable](https://cloud.google.com/bigtable}/), which is Google's
7NoSQL Big Data database service. It's the same database that powers many core
8Google services, including Search, Analytics, Maps, and Gmail.
9
10Please note that the Google Cloud C++ client libraries do **not** follow
11[Semantic Versioning](http://semver.org/).
12
13## Supported Platforms
14
15* Windows, macOS, Linux
16* C++11 (and higher) compilers (we test with GCC \>= 4.9, Clang >= 3.8, and MSVC \>= 2019)
17* Environments with or without exceptions
18* Bazel and CMake builds
19
20## Documentation
21
22* Official documentation about the [Cloud Bigtable][cloud-bigtable-docs] service
23* [Reference doxygen documentation][doxygen-link] for each release of this client library
24* Detailed header comments in our [public `.h`][source-link] files
25
26[doxygen-link]: https://googleapis.dev/cpp/google-cloud-bigtable/latest/
27[cloud-bigtable-docs]: https://cloud.google.com/bigtable/docs/
28[source-link]: https://github.com/googleapis/google-cloud-cpp/tree/master/google/cloud/bigtable
29
30## Quickstart
31
32The [quickstart/](quickstart/) directory contains a minimal environment to
33help you quickly get started using this client library. The following is the
34"Hello World" program you'll be running, which should give you a taste of this
35library.
36
37```cc
38#include "google/cloud/bigtable/table.h"
39
40int main(int argc, char* argv[]) try {
41  if (argc != 4) {
42    std::string const cmd = argv[0];
43    auto last_slash = std::string(cmd).find_last_of('/');
44    std::cerr << "Usage: " << cmd.substr(last_slash + 1)
45              << " <project_id> <instance_id> <table_id>\n";
46    return 1;
47  }
48
49  std::string const project_id = argv[1];
50  std::string const instance_id = argv[2];
51  std::string const table_id = argv[3];
52
53  // Create a namespace alias to make the code easier to read.
54  namespace cbt = google::cloud::bigtable;
55
56  cbt::Table table(cbt::CreateDefaultDataClient(project_id, instance_id,
57                                                cbt::ClientOptions()),
58                   table_id);
59
60  std::string row_key = "r1";
61  std::string column_family = "cf1";
62
63  std::cout << "Getting a single row by row key:" << std::flush;
64  google::cloud::StatusOr<std::pair<bool, cbt::Row>> result =
65      table.ReadRow(row_key, cbt::Filter::FamilyRegex(column_family));
66  if (!result) throw std::runtime_error(result.status().message());
67  if (!result->first) {
68    std::cout << "Cannot find row " << row_key << " in the table: " << table_id
69              << "\n";
70    return 0;
71  }
72
73  cbt::Cell const& cell = result->second.cells().front();
74  std::cout << cell.family_name() << ":" << cell.column_qualifier() << "    @ "
75            << cell.timestamp().count() << "us\n"
76            << '"' << cell.value() << '"' << "\n";
77
78  return 0;
79} catch (std::exception const& ex) {
80  std::cerr << "Standard C++ exception raised: " << ex.what() << "\n";
81  return 1;
82}
83```
84
85## Contributing changes
86
87See [`CONTRIBUTING.md`](../../../CONTRIBUTING.md) for details on how to
88contribute to this project, including how to build and test your changes
89as well as how to properly format your code.
90
91## Licensing
92
93Apache 2.0; see [`LICENSE`](../../../LICENSE) for details.
94
95