Class TableConfig (2.20.0)

Specify the initial schema for a new table.

Constructors

TableConfig()

TableConfig(std::map< std::string, GcRule >, std::vector< std::string >)

Parameters
Name Description
column_families std::map< std::string, GcRule >
initial_splits std::vector< std::string >

Functions

column_families() const

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.

Returns
Type Description
std::map< std::string, GcRule > const &

add_column_family(std::string, GcRule)

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.

Parameters
Name Description
column_family_name std::string
gc_rule GcRule
Returns
Type Description
void

initial_splits() const

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.

Returns
Type Description
std::vector< std::string > const &

add_initial_split(std::string)

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.

Parameter
Name Description
split std::string
Returns
Type Description
void

timestamp_granularity() const

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.

Returns
Type Description
TimestampGranularity

set_timestamp_granularity(TimestampGranularity)

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.

Parameter
Name Description
new_value TimestampGranularity
Returns
Type Description
void

as_proto() &&

Move the contents to the proto to create tables.

Returns
Type Description
::google::bigtable::admin::v2::CreateTableRequest

Type Aliases

TimestampGranularity

Alias Of: ::google::bigtable::admin::v2::Table::TimestampGranularity