Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
google::cloud::bigtable::TableConfig Class Reference

Specify the initial schema for a new table. More...

#include <google/cloud/bigtable/table_config.h>

Public Types

using TimestampGranularity = ::google::bigtable::admin::v2::Table::TimestampGranularity
 

Public Member Functions

 TableConfig ()
 
 TableConfig (std::map< std::string, GcRule > column_families, std::vector< std::string > initial_splits)
 
::google::bigtable::admin::v2::CreateTableRequest as_proto () &&
 Move the contents to the proto to create tables. More...
 
Accessors and modifiers for all attributes
std::map< std::string, GcRule > const & column_families () const
 Return the timestamp granularity parameter. More...
 
void add_column_family (std::string column_family_name, GcRule gc_rule)
 Return the timestamp granularity parameter. More...
 
std::vector< std::string > const & initial_splits () const
 Return the timestamp granularity parameter. More...
 
void add_initial_split (std::string split)
 Return the timestamp granularity parameter. More...
 
TimestampGranularity timestamp_granularity () const
 Return the timestamp granularity parameter. More...
 
void set_timestamp_granularity (TimestampGranularity new_value)
 Set the timestamp granularity parameter. More...
 

Static Public Attributes

static constexpr TimestampGranularity MILLIS
 
static constexpr TimestampGranularity TIMESTAMP_GRANULARITY_UNSPECIFIED
 

Detailed Description

Specify the initial schema for a new table.

Member Typedef Documentation

◆ TimestampGranularity

using google::cloud::bigtable::TableConfig::TimestampGranularity = ::google::bigtable::admin::v2::Table::TimestampGranularity

Constructor & Destructor Documentation

◆ TableConfig() [1/2]

google::cloud::bigtable::TableConfig::TableConfig ( )
inline

◆ TableConfig() [2/2]

google::cloud::bigtable::TableConfig::TableConfig ( std::map< std::string, GcRule column_families,
std::vector< std::string >  initial_splits 
)
inline

Member Function Documentation

◆ add_column_family()

void google::cloud::bigtable::TableConfig::add_column_family ( std::string  column_family_name,
GcRule  gc_rule 
)
inline

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

◆ add_initial_split()

void google::cloud::bigtable::TableConfig::add_initial_split ( std::string  split)
inline

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

◆ as_proto()

::google::bigtable::admin::v2::CreateTableRequest google::cloud::bigtable::TableConfig::as_proto ( ) &&

Move the contents to the proto to create tables.

◆ column_families()

std::map< std::string, GcRule > const & google::cloud::bigtable::TableConfig::column_families ( ) const
inline

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

◆ initial_splits()

std::vector< std::string > const & google::cloud::bigtable::TableConfig::initial_splits ( ) const
inline

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

◆ set_timestamp_granularity()

void google::cloud::bigtable::TableConfig::set_timestamp_granularity ( TimestampGranularity  new_value)
inline

Set the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect. Creating cells with higher granularity than the supported value is rejected by the server.

◆ timestamp_granularity()

TimestampGranularity google::cloud::bigtable::TableConfig::timestamp_granularity ( ) const
inline

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

Member Data Documentation

◆ MILLIS

constexpr TimestampGranularity google::cloud::bigtable::TableConfig::MILLIS
staticconstexpr
Initial value:
=
::google::bigtable::admin::v2::Table::MILLIS

◆ TIMESTAMP_GRANULARITY_UNSPECIFIED

constexpr TimestampGranularity google::cloud::bigtable::TableConfig::TIMESTAMP_GRANULARITY_UNSPECIFIED
staticconstexpr
Initial value:
=
::google::bigtable::admin::v2::Table::TIMESTAMP_GRANULARITY_UNSPECIFIED